Skip to content
Snippets Groups Projects
Commit 7faa4b5e authored by Guillaume HEUSCH's avatar Guillaume HEUSCH
Browse files

[database] added modification to high-level interface for CASIA-SURF (purposes...

[database] added modification to high-level interface for CASIA-SURF (purposes for validation and test data)
parent 0ad5a5bd
No related branches found
No related tags found
1 merge request!90[database] added modification to high-level interface for CASIA-SURF (purposes...
Pipeline #27827 failed
......@@ -168,8 +168,14 @@ class CasiaSurfPadDatabase(PadDatabase):
if 'train' in groups and 'attack' in purposes:
lowlevel_purposes.append('attack')
# for dev and eval
if ('validation' in groups or 'test' in groups) and 'attack' in purposes:
# for dev
if 'validation' in groups and 'real' in purposes:
lowlevel_purposes.append('real')
if 'validation' in groups and 'attack' in purposes:
lowlevel_purposes.append('attack')
# for eval
if 'test' in groups and 'attack' in purposes:
lowlevel_purposes.append('unknown')
samples = self.db.objects(groups=groups, purposes=lowlevel_purposes, **kwargs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment