Skip to content
Snippets Groups Projects
Commit 437d7cb5 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Hacked the spoofing layer to deal with the anonymous test set

parent ce35fbfa
No related branches found
No related tags found
No related merge requests found
...@@ -120,7 +120,9 @@ class Database(DatabaseBase): ...@@ -120,7 +120,9 @@ class Database(DatabaseBase):
identities = [k.id for k in self.__db.clients()] identities = [k.id for k in self.__db.clients()]
p.add_argument('--client', type=int, action='append', choices=identities, dest='replay_client', help="Client identifier (if unset, the default, use all)") p.add_argument('--client', type=int, action='append', choices=identities, dest='replay_client', help="Client identifier (if unset, the default, use all)")
p.add_argument('--ICB-2013', default=False, action='store_true', dest='icb2013', help="Retrieve the File list of the ICB 2013 competition anonymized test set (The 2nd competition on counter measures to 2D facial spoofing attacks).") p.add_argument('--ICB-2013', default=False, action='store_true', dest='icb2013', help="Retrieve the File list of the ICB 2013 competition anonymized test set (The 2nd competition on counter measures to 2D facial spoofing attacks).")
p.add_argument('--ICB-2013-average-size', default=100 , type=int, dest='icb2013_average_size', help="The number of accumulated frames to compute the average.")
p.set_defaults(name=entry_point_name) p.set_defaults(name=entry_point_name)
p.set_defaults(cls=Database) p.set_defaults(cls=Database)
...@@ -240,7 +242,6 @@ class Database(DatabaseBase): ...@@ -240,7 +242,6 @@ class Database(DatabaseBase):
devel_real,devel_attack = self.get_devel_data() devel_real,devel_attack = self.get_devel_data()
anonymous_data,_ = self.get_ICB2013_test_data() anonymous_data,_ = self.get_ICB2013_test_data()
return train_real + devel_real + anonymous_data, train_attack + devel_attack return train_real + devel_real + anonymous_data, train_attack + devel_attack
#return anonymous_data,[]
return self.get_data(None) return self.get_data(None)
get_all_data.__doc__ = DatabaseBase.get_all_data.__doc__ get_all_data.__doc__ = DatabaseBase.get_all_data.__doc__
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment