Commit 840349c5 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Merge branch 'chalearn_pad' into 'master'

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

See merge request !90
parents 834946bc 7faa4b5e
Pipeline #28258 failed with stage
in 15 minutes and 38 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