File "/Users/yunwang/AFFACT+AFFFE/test_pipeline.py", line 52, in <module>
database.allow_scoring_with_all_biometric_references = False
NameError: name 'database' is not defined
Then I remove the last line of the sample code as you told me last time, but I got another error:
File "/Users/yunwang/opt/miniconda3/envs/bob_env1/lib/python3.8/site-packages/bob/bio/base/pipelines/vanilla_biometrics/abstract_classes.py", line 125, in score_samples
self._score_sample_set(
File "/Users/yunwang/opt/miniconda3/envs/bob_env1/lib/python3.8/site-packages/bob/bio/base/pipelines/vanilla_biometrics/abstract_classes.py", line 154, in _score_sample_set
scores = self.score_multiple_biometric_references(
File "/Users/yunwang/opt/miniconda3/envs/bob_env1/lib/python3.8/site-packages/bob/bio/base/pipelines/vanilla_biometrics/abstract_classes.py", line 258, in score_multiple_biometric_references
raise NotImplementedError(
NotImplementedError: Your BioAlgorithm implementation should implement score_multiple_biometric_references.
Given I test the sample pipeline using the atnt database, how can I fix this issue? How should I define the 'database' to make the last line of the sample code right?
Thank you!
bob bio pipelines vanilla-biometrics -d atnt -p /Users/yunwang/AFFACT+AFFFE/test_pipeline.py -o results
(2) the documentation says: for the long version adding --pipeline first, then --database
bob bio pipelines vanilla-biometrics --pipeline /Users/yunwang/AFFACT+AFFFE/test_pipeline.py --database atnt --output results
File "/Users/yunwang/AFFACT+AFFFE/test_pipeline.py", line 52, in <module>
database.allow_scoring_with_all_biometric_references = False
NameError: name 'database' is not defined
It seems it's not the problem with the commands.
---- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/---You received this message because you are subscribed to the Google Groups "bob-devel" group.To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+...@googlegroups.com.To view this discussion on the web, visit https://groups.google.com/d/msgid/bob-devel/befa6712-fbf4-41c9-a49b-b91925201874n%40googlegroups.com.
test_pipeline.py
, add:# pipeline definition
...
from bob.bio.face.config.database.atnt import database
database.allow_scoring_with_all_biometric_references = False
output = "results"
bob bio pipelines vanilla-biometrics /Users/yunwang/AFFACT+AFFFE/test_pipeline.py
bob bio pipelines vanilla-biometrics -H sample_config.py
To view this discussion on the web, visit https://groups.google.com/d/msgid/bob-devel/75D30886-77EA-4CF4-AECB-F9C5D66008C9%40getmailspring.com.
File "/Users/yunwang/opt/miniconda3/envs/bob_env1/lib/python3.8/site-packages/bob/bio/base/pipelines/vanilla_biometrics/abstract_classes.py", line 125, in score_samples
self._score_sample_set(
File "/Users/yunwang/opt/miniconda3/envs/bob_env1/lib/python3.8/site-packages/bob/bio/base/pipelines/vanilla_biometrics/abstract_classes.py", line 199, in _score_sample_set
scores = self.score_multiple_biometric_references(
File "/Users/yunwang/opt/miniconda3/envs/bob_env1/lib/python3.8/site-packages/bob/bio/base/pipelines/vanilla_biometrics/abstract_classes.py", line 258, in score_multiple_biometric_references
raise NotImplementedError(
NotImplementedError: Your BioAlgorithm implementation should implement score_multiple_biometric_references.
To view this discussion on the web, visit https://groups.google.com/d/msgid/bob-devel/ed972dc3-a586-45c5-b222-dda0bfa4aaa3n%40googlegroups.com.