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

[db, casiasurf] added attack-type=None for real examples

parent 414e5b3b
No related branches found
No related tags found
1 merge request!89CASIA SURF
...@@ -41,10 +41,12 @@ class CasiaSurfPadFile(VideoPadFile): ...@@ -41,10 +41,12 @@ class CasiaSurfPadFile(VideoPadFile):
self.stream_type = stream_type self.stream_type = stream_type
if not isinstance(s.attack_type, str): if not isinstance(s.attack_type, str):
attack_type = str(s.attack_type) attack_type = str(s.attack_type)
attack_type = None
else: else:
attack_type = s.attack_type attack_type = s.attack_type
if attack_type == '0':
s.attack_type = None
super(CasiaSurfPadFile, self).__init__( super(CasiaSurfPadFile, self).__init__(
client_id=s.id, client_id=s.id,
file_id=s.id, file_id=s.id,
......
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