Commit cc9cfb42 authored by Yannick DAYER's avatar Yannick DAYER

databases configs to use DatabaseConnector

parent 20026b0a
Pipeline #51586 failed with stage
in 8 minutes and 5 seconds
#!/usr/bin/env python
from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector
from bob.bio.spear.database import ASVspoofBioDatabase
# directory where the wave files are stored
......@@ -7,16 +8,20 @@ asvspoof_wav_directory = "[YOUR_ASVSPOOF_WAV_DIRECTORY]"
asvspoof_input_ext = ".wav"
database_licit = ASVspoofBioDatabase(
protocol="licit",
original_directory=asvspoof_wav_directory,
original_extension=asvspoof_input_ext,
training_depends_on_protocol=True,
database_licit = DatabaseConnector(
ASVspoofBioDatabase(
protocol="licit",
original_directory=asvspoof_wav_directory,
original_extension=asvspoof_input_ext,
training_depends_on_protocol=True,
)
)
database_spoof = ASVspoofBioDatabase(
protocol="spoof",
original_directory=asvspoof_wav_directory,
original_extension=asvspoof_input_ext,
training_depends_on_protocol=True,
database_spoof = DatabaseConnector(
ASVspoofBioDatabase(
protocol="spoof",
original_directory=asvspoof_wav_directory,
original_extension=asvspoof_input_ext,
training_depends_on_protocol=True,
)
)
#!/usr/bin/env python
from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector
from bob.bio.spear.database import ASVspoof2017BioDatabase
# directory where the wave files are stored
......@@ -7,16 +8,20 @@ asvspoof_wav_directory = "[YOUR_ASVSPOOF2017_WAV_DIRECTORY]"
asvspoof_input_ext = ".wav"
database_licit = ASVspoof2017BioDatabase(
protocol="competition-licit",
original_directory=asvspoof_wav_directory,
original_extension=asvspoof_input_ext,
training_depends_on_protocol=True,
database_licit = DatabaseConnector(
ASVspoof2017BioDatabase(
protocol="competition-licit",
original_directory=asvspoof_wav_directory,
original_extension=asvspoof_input_ext,
training_depends_on_protocol=True,
)
)
database_spoof = ASVspoof2017BioDatabase(
protocol="competition-spoof",
original_directory=asvspoof_wav_directory,
original_extension=asvspoof_input_ext,
training_depends_on_protocol=True,
database_spoof = DatabaseConnector(
ASVspoof2017BioDatabase(
protocol="competition-spoof",
original_directory=asvspoof_wav_directory,
original_extension=asvspoof_input_ext,
training_depends_on_protocol=True,
)
)
#!/usr/bin/env python
from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector
from bob.bio.spear.database import AVspoofBioDatabase
# directory where the wave files are stored
......@@ -7,16 +8,20 @@ avspoof_wav_directory = "[YOUR_AVSPOOF_WAV_DIRECTORY]"
avspoof_input_ext = ".wav"
database_licit = AVspoofBioDatabase(
protocol="licit",
original_directory=avspoof_wav_directory,
original_extension=avspoof_input_ext,
training_depends_on_protocol=True,
database_licit = DatabaseConnector(
AVspoofBioDatabase(
protocol="licit",
original_directory=avspoof_wav_directory,
original_extension=avspoof_input_ext,
training_depends_on_protocol=True,
)
)
database_spoof = AVspoofBioDatabase(
protocol="spoof",
original_directory=avspoof_wav_directory,
original_extension=avspoof_input_ext,
training_depends_on_protocol=True,
database_spoof = DatabaseConnector(
AVspoofBioDatabase(
protocol="spoof",
original_directory=avspoof_wav_directory,
original_extension=avspoof_input_ext,
training_depends_on_protocol=True,
)
)
#!/usr/bin/env python
from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector
from bob.bio.spear.database import MobioBioDatabase
mobio_wav_directory = "[YOUR_MOBIO_WAV_DIRECTORY]"
database = MobioBioDatabase(
original_directory=mobio_wav_directory,
original_extension=".wav",
protocol="female",
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"},
database = DatabaseConnector(
MobioBioDatabase(
original_directory=mobio_wav_directory,
original_extension=".wav",
protocol="female",
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"},
)
)
#!/usr/bin/env python
from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector
from bob.bio.spear.database import MobioBioDatabase
mobio_wav_directory = "[YOUR_MOBIO_WAV_DIRECTORY]"
database = MobioBioDatabase(
original_directory=mobio_wav_directory,
original_extension=".wav",
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"},
database = DatabaseConnector(
MobioBioDatabase(
original_directory=mobio_wav_directory,
original_extension=".wav",
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"},
)
)
......@@ -4,15 +4,18 @@ import pkg_resources
import bob.bio.base
from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector
from bob.bio.spear.database import AudioBioFile
timit_wav_directory = "[YOUR_TIMIT_WAV_DIRECTORY]"
database = bob.bio.base.database.FileListBioDatabase(
pkg_resources.resource_filename("bob.bio.spear", "config/database/timit"),
"timit",
bio_file_class=AudioBioFile,
protocol="2",
original_directory=timit_wav_directory,
original_extension=".wav",
database = DatabaseConnector(
bob.bio.base.database.FileListBioDatabase(
pkg_resources.resource_filename("bob.bio.spear", "config/database/timit"),
"timit",
bio_file_class=AudioBioFile,
protocol="2",
original_directory=timit_wav_directory,
original_extension=".wav",
)
)
#!/usr/bin/env python
from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector
from bob.bio.spear.database import VoicePABioDatabase
# directory where the wave files are stored
......@@ -7,16 +8,20 @@ voicepa_wav_directory = "[YOUR_VOICEPA_WAV_DIRECTORY]"
voicepa_input_ext = ".wav"
database_licit = VoicePABioDatabase(
protocol="grandtest-licit",
original_directory=voicepa_wav_directory,
original_extension=voicepa_input_ext,
training_depends_on_protocol=True,
database_licit = DatabaseConnector(
VoicePABioDatabase(
protocol="grandtest-licit",
original_directory=voicepa_wav_directory,
original_extension=voicepa_input_ext,
training_depends_on_protocol=True,
)
)
database_spoof = VoicePABioDatabase(
protocol="grandtest-spoof",
original_directory=voicepa_wav_directory,
original_extension=voicepa_input_ext,
training_depends_on_protocol=True,
database_spoof = DatabaseConnector(
VoicePABioDatabase(
protocol="grandtest-spoof",
original_directory=voicepa_wav_directory,
original_extension=voicepa_input_ext,
training_depends_on_protocol=True,
)
)
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