Skip to content
Snippets Groups Projects
Commit 670bd4fc authored by Yannick DAYER's avatar Yannick DAYER
Browse files

[py][fix] Correct way to implement the optim

Forgot to save the last change -_-
parent 239c99f5
Branches
No related tags found
No related merge requests found
Pipeline #39060 failed
...@@ -98,15 +98,12 @@ class Database: ...@@ -98,15 +98,12 @@ class Database:
logger.debug(f"Reading '{eyecoords_file}'.") logger.debug(f"Reading '{eyecoords_file}'.")
self.eyes_dataframe = pandas.read_csv(eyecoords_file, index_col="photo") self.eyes_dataframe = pandas.read_csv(eyecoords_file, index_col="photo")
self._allow_scoring_with_all_biometric_references = \
self.protoco.allow_scoring_with_all_references
logger.info(f"morph Database ready for queries.") logger.info(f"morph Database ready for queries.")
@property @property
def allow_scoring_with_all_biometric_references(self): def allow_scoring_with_all_biometric_references(self):
# This allows some optimization during the scoring stage # This allows some optimization during the scoring stage
return self._allow_scoring_with_all_biometric_references return self.protocol.allow_scoring_with_all_references
def background_model_samples(self): def background_model_samples(self):
"""Returns :py:class:`Sample`'s to train a background model (group """Returns :py:class:`Sample`'s to train a background model (group
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment