Commit 7faa4b5e authored by Guillaume HEUSCH's avatar Guillaume HEUSCH

[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
Pipeline #27827 failed with stage
in 8 minutes and 57 seconds
......@@ -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)
......
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