From b72111bc4c1dcbfe56865d1666c063220f07565d Mon Sep 17 00:00:00 2001 From: Tiago Freitas Pereira <tiagofrepereira@gmail.com> Date: Tue, 24 Mar 2020 09:24:21 +0100 Subject: [PATCH] Fixed issue with metadata --- bob/bio/base/config/examples/pca_mobio-male.py | 2 +- bob/bio/base/pipelines/vanilla_biometrics/legacy.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bob/bio/base/config/examples/pca_mobio-male.py b/bob/bio/base/config/examples/pca_mobio-male.py index 27df1f84..ef0dc0e4 100644 --- a/bob/bio/base/config/examples/pca_mobio-male.py +++ b/bob/bio/base/config/examples/pca_mobio-male.py @@ -62,7 +62,7 @@ extractor = Pipeline(steps=[ ('1',CheckpointSampleLinearize(features_dir=os.path.join(base_dir,"extractor1"))), ('2',CheckpointSamplePCA(features_dir=os.path.join(base_dir,"extractor2"), model_path=os.path.join(base_dir,"pca.pkl"))) ]) -#extractor = dask_it(extractor) +extractor = dask_it(extractor) from bob.bio.base.pipelines.vanilla_biometrics.biometric_algorithm import Distance, BiometricAlgorithmCheckpointMixin diff --git a/bob/bio/base/pipelines/vanilla_biometrics/legacy.py b/bob/bio/base/pipelines/vanilla_biometrics/legacy.py index 346eea5b..df5bb27e 100644 --- a/bob/bio/base/pipelines/vanilla_biometrics/legacy.py +++ b/bob/bio/base/pipelines/vanilla_biometrics/legacy.py @@ -263,7 +263,7 @@ class DatabaseConnectorAnnotated(DatabaseConnector): [ DelayedSample( load=functools.partial( - _load_data_and_annotations, self.database.annotations(k), self.database.original_directory, self.database.original_extension + _load_data_and_annotations, k, self.database.annotations(k), self.database.original_directory, self.database.original_extension ), key=str(k.id), path=k.path, @@ -311,7 +311,7 @@ class DatabaseConnectorAnnotated(DatabaseConnector): [ DelayedSample( load=functools.partial( - _load_data_and_annotations, self.database.annotations(k), self.database.original_directory, self.database.original_extension + _load_data_and_annotations, k, self.database.annotations(k), self.database.original_directory, self.database.original_extension ), key=k.id, path=k.path, @@ -368,7 +368,7 @@ class DatabaseConnectorAnnotated(DatabaseConnector): [ DelayedSample( load=functools.partial( - _load_data_and_annotations, self.database.annotations(o), self.database.original_directory, self.database.original_extension + _load_data_and_annotations, o, self.database.annotations(o), self.database.original_directory, self.database.original_extension ), key=o.id, path=o.path, -- GitLab