Skip to content
Snippets Groups Projects
Commit 2578a83d authored by Olegs NIKISINS's avatar Olegs NIKISINS
Browse files

WIP: Some modifications in BATL HLDI

parent 4791a034
No related branches found
No related tags found
1 merge request!59Added HLDI for the BATL database, added optional data normalization in FaceCropAlign
Pipeline #
...@@ -4,6 +4,7 @@ from .replay_mobile import ReplayMobilePadDatabase ...@@ -4,6 +4,7 @@ from .replay_mobile import ReplayMobilePadDatabase
from .msu_mfsd import MsuMfsdPadDatabase from .msu_mfsd import MsuMfsdPadDatabase
from .aggregated_db import AggregatedDbPadDatabase from .aggregated_db import AggregatedDbPadDatabase
from .mifs import MIFSPadDatabase from .mifs import MIFSPadDatabase
from .batl import BatlPadDatabase
# gets sphinx autodoc done right - don't remove it # gets sphinx autodoc done right - don't remove it
...@@ -29,6 +30,7 @@ __appropriate__( ...@@ -29,6 +30,7 @@ __appropriate__(
MsuMfsdPadDatabase, MsuMfsdPadDatabase,
AggregatedDbPadDatabase, AggregatedDbPadDatabase,
MIFSPadDatabase, MIFSPadDatabase,
BatlPadDatabase,
) )
__all__ = [_ for _ in dir() if not _.startswith('_')] __all__ = [_ for _ in dir() if not _.startswith('_')]
...@@ -192,7 +192,7 @@ class BatlPadDatabase(PadDatabase): ...@@ -192,7 +192,7 @@ class BatlPadDatabase(PadDatabase):
def objects(self, def objects(self,
protocol=None, protocol=None,
group=None, groups=None,
purposes=None, purposes=None,
sessions=None, sessions=None,
**kwargs): **kwargs):
...@@ -229,6 +229,26 @@ class BatlPadDatabase(PadDatabase): ...@@ -229,6 +229,26 @@ class BatlPadDatabase(PadDatabase):
# Since this database was designed for PAD experiments, nothing special # Since this database was designed for PAD experiments, nothing special
# needs to be done here. # needs to be done here.
files = self.db.objects(protocol=protocol, groups=groups, purposes=purposes **kwargs) files = self.db.objects(protocol=protocol, groups=groups, purposes=purposes **kwargs)
# files = self.db.objects(protocol=protocol, purposes=groups, **kwargs)
#
# if purposes == ["real", "attack"]:
#
# files = files
#
# if purposes == "real" or purposes == ["real"]:
#
# a = 1
#
#
# if purposes == "attack" or purposes == ["attack"]:
#
# a = 1
files = [BatlPadFile(f, stream_type, max_frames) for f in files] files = [BatlPadFile(f, stream_type, max_frames) for f in files]
return files return files
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment