From d6772cf13e6603c0184a3e4a1e8c7943186a6b85 Mon Sep 17 00:00:00 2001 From: Guillaume HEUSCH <guillaume.heusch@idiap.ch> Date: Fri, 15 Feb 2019 15:57:17 +0100 Subject: [PATCH] [db, casiasurf] added attack-type=None for real examples --- bob/pad/face/database/casiasurf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bob/pad/face/database/casiasurf.py b/bob/pad/face/database/casiasurf.py index 0a0d7a2a..25ca19f6 100644 --- a/bob/pad/face/database/casiasurf.py +++ b/bob/pad/face/database/casiasurf.py @@ -41,10 +41,12 @@ class CasiaSurfPadFile(VideoPadFile): self.stream_type = stream_type if not isinstance(s.attack_type, str): attack_type = str(s.attack_type) - attack_type = None else: attack_type = s.attack_type + if attack_type == '0': + s.attack_type = None + super(CasiaSurfPadFile, self).__init__( client_id=s.id, file_id=s.id, -- GitLab