Commit fe98106f authored by Pavel KORSHUNOV's avatar Pavel KORSHUNOV

corrections of asvspoof2017 interface and gmm algos

parent 87c3bf5a
Pipeline #12615 failed with stages
in 15 minutes and 17 seconds
......@@ -3,6 +3,9 @@
# Pavel Korshunov <pavel.korshunov@idiap.ch>
# Thu 23 Jun 11:16:22 2016
from . import algorithm
"""
The methods for the package
......
......@@ -33,6 +33,7 @@ class GmmAlgorithm (Algorithm):
update_variances = True,
responsibility_threshold = 0, # If set, the weight of a particular Gaussian will at least be greater than this threshold. In the case the real weight is lower, the prior mean value will be used to estimate the current mean and variance.
INIT_SEED = 2015,
requires_projector_training = False,
**kwargs):
# call base class constructor registering that this tool performs everything.
......@@ -50,7 +51,7 @@ class GmmAlgorithm (Algorithm):
INIT_SEED = INIT_SEED,
# parameters of detection pipeline
performs_projection = True,
requires_projector_training = False,
requires_projector_training = requires_projector_training,
use_projected_features_for_enrollment = False,
multiple_model_scoring = None,
)
......
......@@ -80,10 +80,14 @@ class ASVspoof2017PadDatabase(PadDatabase):
purposes = self.convert_purposes(purposes, ('genuine', 'spoof'), ('real', 'attack'))
if protocol == 'largetrain':
if groups == 'train':
protocol = 'competition'
print (groups)
if 'train' in groups and 'dev' in groups:
groups = ('train', 'dev', 'eval')
elif 'train' in groups:
groups = ('train', 'dev')
if groups == 'dev':
groups = 'eval'
elif 'dev' in groups:
groups = ('eval',)
print(groups)
objects = self.__db.objects(protocol=protocol, groups=groups, purposes=purposes, **kwargs)
return [ASVspoof2017PadFile(f) for f in objects]
......@@ -107,6 +107,11 @@ setup(
'dummy-speech = bob.pad.voice.test.dummy.database:Interface', # driver for bobdb_manage
],
'bob.bio.database': [
'cpqd_replay-licit = bob.db.cpqd_replay.config.database.cpqd_replay:database_licit',
'cpqd_replay-spoof = bob.db.cpqd_replay.config.database.cpqd_replay:database_spoof',
],
'bob.pad.database': [
'dummy-speech = bob.pad.voice.test.dummy.database:database',
'avspoof = bob.pad.voice.config.database.avspoof:database',
......@@ -128,6 +133,7 @@ setup(
'gmm = bob.pad.voice.algorithm.gmm_algorithm:algorithm',
# the same as above but with smaller thresholds
'gmm-scfc = bob.pad.voice.config.algorithm.gmm_scfc:algorithm',
'gmm16 = bob.pad.voice.config.algorithm.gmm16:algorithm',
],
'bob.pad.preprocessor': [
......
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