lfw_restricted.py 623 Bytes
Newer Older
Manuel Günther's avatar
Manuel Günther committed
1
2
#!/usr/bin/env python

3
from bob.bio.db import LFWBioDatabase
Manuel Günther's avatar
Manuel Günther committed
4
5
6

lfw_directory = "[YOUR_LFW_FUNNELED_DIRECTORY]"

7
8
9
database = LFWBioDatabase(
    original_directory=lfw_directory,
    annotation_type='funneled',
Manuel Günther's avatar
Manuel Günther committed
10

11
12
13
14
15
16
17
18
    protocol='view1',
    training_depends_on_protocol=True,
    models_depend_on_protocol=True,

    all_files_options={'world_type': 'restricted'},
    extractor_training_options={'world_type': 'restricted'},  # 'subworld' : 'twofolds'
    projector_training_options={'world_type': 'restricted'},  # 'subworld' : 'twofolds'
    enroller_training_options={'world_type': 'restricted'}  # 'subworld' : 'twofolds'
Manuel Günther's avatar
Manuel Günther committed
19
)