[refactoring_2016] Migrating the database entry points to point to the High Level Interfaces

parent 51718618
Pipeline #3286 failed with stage
in 5 minutes and 43 seconds
#!/usr/bin/env python
import bob.db.arface
import bob.bio.base
from bob.bio.db import ARFaceBioDatabase
arface_directory = "[YOUR_ARFACE_DIRECTORY]"
database = bob.bio.base.database.DatabaseBob(
database = bob.db.arface.Database(
original_directory = arface_directory
),
name = 'arface',
protocol = 'all'
database = ARFaceBioDatabase(
original_directory=arface_directory,
original_extension=".png",
protocol='all'
)
#!/usr/bin/env python
import bob.db.atnt
import bob.bio.base
from bob.bio.db import AtntBioDatabase
atnt_directory = "[YOUR_ATNT_DIRECTORY]"
atnt_directory = "[YOUR_CAS-PEAL_DIRECTORY]"
database = bob.bio.base.database.DatabaseBob(
database = bob.db.atnt.Database(
original_directory = atnt_directory
),
name = 'atnt'
database = AtntBioDatabase(
original_directory=atnt_directory,
)
#!/usr/bin/env python
import bob.db.banca
import bob.bio.base
from bob.bio.db import BancaBioDatabase
banca_directory = "[YOUR_BANCA_DIRECTORY]"
database = bob.bio.base.database.DatabaseBobZT(
database = bob.db.banca.Database(
original_directory = banca_directory,
original_extension = '.ppm'
),
name = "banca",
protocol = 'P'
database = BancaBioDatabase(
original_directory=banca_directory,
original_extension=".ppm",
protocol='P'
)
#!/usr/bin/env python
import bob.db.caspeal
import bob.bio.base
from bob.bio.db import CaspealBioDatabase
caspeal_directory = "[YOUR_CAS-PEAL_DIRECTORY]"
database = bob.bio.base.database.DatabaseBob(
database = bob.db.caspeal.Database(
original_directory = caspeal_directory
),
name = "caspeal",
protocol = 'lighting'
database = CaspealBioDatabase(
original_directory=caspeal_directory,
protocol='lighting'
)
#!/usr/bin/env python
import bob.db.gbu
import bob.bio.base
from bob.bio.db import GBUBioDatabase
mbgc_v1_directory = "[YOUR_MBGC-V1_DIRECTORY]"
database = bob.bio.base.database.DatabaseBob(
database = bob.db.gbu.Database(
original_directory = mbgc_v1_directory
),
name = "gbu",
protocol = 'Good',
models_depend_on_protocol = True,
database = GBUBioDatabase(
original_directory=mbgc_v1_directory,
protocol='Good',
models_depend_on_protocol=True,
all_files_options = { 'subworld': 'x2' },
extractor_training_options = { 'subworld': 'x2' },
projector_training_options = { 'subworld': 'x2' },
enroller_training_options = { 'subworld': 'x2' }
all_files_options={'subworld': 'x2'},
extractor_training_options={'subworld': 'x2'},
projector_training_options={'subworld': 'x2'},
enroller_training_options={'subworld': 'x2'}
)
#!/usr/bin/env python
import bob.db.lfw
import bob.bio.base
from bob.bio.db import LFWBioDatabase
lfw_directory = "[YOUR_LFW_FUNNELED_DIRECTORY]"
database = bob.bio.base.database.DatabaseBob(
database = bob.db.lfw.Database(
original_directory = lfw_directory,
annotation_type = 'funneled'
),
name = 'lfw',
protocol = 'view1',
training_depends_on_protocol = True,
models_depend_on_protocol = True,
database = LFWBioDatabase(
original_directory=lfw_directory,
annotation_type='funneled',
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'
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'
)
#!/usr/bin/env python
import bob.db.lfw
import bob.bio.base
from bob.bio.db import LFWBioDatabase
lfw_directory = "[YOUR_LFW_FUNNELED_DIRECTORY]"
database = bob.bio.base.database.DatabaseBob(
database = bob.db.lfw.Database(
original_directory = lfw_directory,
annotation_type = 'funneled'
),
name = 'lfw',
protocol = 'view1',
training_depends_on_protocol = True,
models_depend_on_protocol = True,
database = 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'
)
#!/usr/bin/env python
import bob.db.mobio
import bob.bio.base
from bob.bio.db import MobioBioDatabase
mobio_image_directory = "[YOUR_MOBIO_IMAGE_DIRECTORY]"
mobio_annotation_directory = "[YOUR_MOBIO_ANNOTATION_DIRECTORY]"
database = bob.bio.base.database.DatabaseBobZT(
database = bob.db.mobio.Database(
original_directory = mobio_image_directory,
original_extension = ".png",
annotation_directory = mobio_annotation_directory,
),
name = "mobio-female",
database = MobioBioDatabase(
original_directory=mobio_image_directory,
original_extension=".png",
annotation_directory=mobio_annotation_directory,
protocol = 'female',
models_depend_on_protocol = True,
models_depend_on_protocol=True,
all_files_options = { 'gender' : 'female' },
extractor_training_options = { 'gender' : 'female' },
projector_training_options = { 'gender' : 'female' },
enroller_training_options = { 'gender' : 'female' },
z_probe_options = { 'gender' : 'female' }
all_files_options={'gender': 'female'},
extractor_training_options={'gender': 'female'},
projector_training_options={'gender': 'female'},
enroller_training_options={'gender': 'female'},
z_probe_options={'gender': 'female'}
)
#!/usr/bin/env python
import bob.db.mobio
import bob.bio.base
from bob.bio.db import MobioBioDatabase
mobio_image_directory = "[YOUR_MOBIO_IMAGE_DIRECTORY]"
mobio_annotation_directory = "[YOUR_MOBIO_ANNOTATION_DIRECTORY]"
database = bob.bio.base.database.DatabaseBobZT(
database = bob.db.mobio.Database(
original_directory = mobio_image_directory,
original_extension = '.png',
annotation_directory = mobio_annotation_directory,
),
name = "mobio",
protocol = 'male',
models_depend_on_protocol = True
database = MobioBioDatabase(
original_directory=mobio_image_directory,
original_extension=".png",
annotation_directory=mobio_annotation_directory,
protocol='male',
models_depend_on_protocol = True,
)
#!/usr/bin/env python
import bob.db.mobio
import bob.bio.base
from bob.bio.db import MobioBioDatabase
mobio_image_directory = "[YOUR_MOBIO_IMAGE_DIRECTORY]"
mobio_annotation_directory = "[YOUR_MOBIO_ANNOTATION_DIRECTORY]"
database = bob.bio.base.database.DatabaseBobZT(
database = bob.db.mobio.Database(
original_directory = mobio_image_directory,
original_extension = ".png",
annotation_directory = mobio_annotation_directory,
),
name = "mobio-male",
protocol = 'male',
database = MobioBioDatabase(
original_directory=mobio_image_directory,
original_extension=".png",
annotation_directory=mobio_annotation_directory,
protocol='male',
models_depend_on_protocol = True,
all_files_options = { 'gender' : 'male' },
extractor_training_options = { 'gender' : 'male' },
projector_training_options = { 'gender' : 'male' },
enroller_training_options = { 'gender' : 'male' },
z_probe_options = { 'gender' : 'male' }
all_files_options={'gender': 'male'},
extractor_training_options={'gender': 'male'},
projector_training_options={'gender': 'male'},
enroller_training_options={'gender': 'male'},
z_probe_options={'gender': 'male'}
)
#!/usr/bin/env python
import bob.db.multipie
import bob.bio.base
from bob.bio.db import MultipieBioDatabase
multipie_image_directory = "[YOUR_MULTI-PIE_IMAGE_DIRECTORY]"
multipie_annotation_directory = "[YOUR_MULTI-PIE_ANNOTATION_DIRECTORY]"
database = bob.bio.base.database.DatabaseBobZT(
database = bob.db.multipie.Database(
original_directory = multipie_image_directory,
annotation_directory = multipie_annotation_directory
),
name = "multipie",
protocol = 'U',
database = MultipieBioDatabase(
original_directory=multipie_image_directory,
annotation_directory=multipie_annotation_directory,
protocol='U',
training_depends_on_protocol = True
)
#!/usr/bin/env python
import bob.db.multipie
import bob.bio.base
multipie_image_directory = "[YOUR_MULTI-PIE_IMAGE_DIRECTORY]"
multipie_annotation_directory = "[YOUR_MULTI-PIE_ANNOTATION_DIRECTORY]"
from bob.bio.db import MultipieBioDatabase
# here, we only want to have the cameras that are used in the P protocol
cameras = ('24_0', '01_0', '20_0', '19_0', '04_1', '05_0', '05_1', '14_0', '13_0', '08_0', '09_0', '12_0', '11_0')
database = bob.bio.base.database.DatabaseBobZT(
database = bob.db.multipie.Database(
original_directory = multipie_image_directory,
annotation_directory = multipie_annotation_directory
),
name = "multipie-pose",
multipie_image_directory = "[YOUR_MULTI-PIE_IMAGE_DIRECTORY]"
multipie_annotation_directory = "[YOUR_MULTI-PIE_ANNOTATION_DIRECTORY]"
database = MultipieBioDatabase(
original_directory=multipie_image_directory,
annotation_directory=multipie_annotation_directory,
protocol = 'P',
training_depends_on_protocol = True,
all_files_options = {'cameras' : cameras},
extractor_training_options = {'cameras' : cameras},
projector_training_options = {'cameras' : cameras, 'world_sampling': 3, 'world_first': True},
enroller_training_options = {'cameras' : cameras}
all_files_options={'cameras': cameras},
extractor_training_options={'cameras': cameras},
projector_training_options={'cameras': cameras, 'world_sampling': 3, 'world_first': True},
enroller_training_options={'cameras': cameras}
)
#!/usr/bin/env python
import bob.db.scface
import bob.bio.base
from bob.bio.db import SCFaceBioDatabase
scface_directory = "[YOUR_SC_FACE_DIRECTORY]"
# setup for SCface database
database = bob.bio.base.database.DatabaseBobZT(
database = bob.db.scface.Database(
original_directory = scface_directory
),
name = 'scface',
protocol = 'combined'
database = SCFaceBioDatabase(
original_directory=scface_directory,
protocol='combined'
)
#!/usr/bin/env python
import bob.db.xm2vts
import bob.bio.base
from bob.bio.db import XM2VTSBioDatabase
xm2vts_directory = "[YOUR_XM2VTS_DIRECTORY]"
# setup for XM2VTS
database = bob.bio.base.database.DatabaseBob(
database = bob.db.xm2vts.Database(
original_directory = xm2vts_directory
),
name = "xm2vts",
protocol = 'lp1'
database = XM2VTSBioDatabase(
original_directory=xm2vts_directory,
protocol='lp1'
)
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment