lfw_unrestricted.py 925 Bytes
Newer Older
1
2
3
#!/usr/bin/env python

from bob.bio.face.database import LFWBioDatabase
4
5
from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector
from bob.extension import rc
6
7


8
lfw_directory = rc["bob.db.lfw.directory"]
9

10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
database = DatabaseConnector(
    LFWBioDatabase(
        original_directory=lfw_directory,
        annotation_type="funneled",
        protocol="view1",
        training_depends_on_protocol=True,
        models_depend_on_protocol=True,
        all_files_options={"world_type": "unrestricted"},
        extractor_training_options={
            "world_type": "unrestricted"
        },  # 'subworld' : 'twofolds'
        projector_training_options={
            "world_type": "unrestricted"
        },  # 'subworld' : 'twofolds'
        enroller_training_options={
            "world_type": "unrestricted"
        },  # 'subworld' : 'twofolds'
27
28
    ),
    allow_scoring_with_all_biometric_references=False,
29
)