diff --git a/bob/pad/face/config/database/mifs.py b/bob/pad/face/config/database/mifs.py new file mode 100644 index 0000000000000000000000000000000000000000..b70b31053c0561e9091ed4ec2840431ee9681105 --- /dev/null +++ b/bob/pad/face/config/database/mifs.py @@ -0,0 +1,33 @@ + + +from bob.pad.face.database.mifs import MIFSPadDatabase + + +# Directory where the data files are stored. +# This directory is given in the .bob_bio_databases.txt file located in your home directory +original_directory = "[YOUR_MIFS_DATABASE_DIRECTORY]" +"""Value of ``~/.bob_bio_databases.txt`` for this database""" + +original_extension = ".jpg" # extension of the data files + + +database = MIFSPadDatabase( + protocol='grandtest', + original_directory=original_directory, + original_extension=original_extension, + training_depends_on_protocol=True, +) +"""The :py:class:`bob.pad.base.database.PadDatabase` derivative with MIFS +database settings. + +.. warning:: + + This class only provides a programmatic interface to load data in an orderly + manner, respecting usage protocols. It does **not** contain the raw + data files. You should procure those yourself. + +Notice that ``original_directory`` is set to ``[YOUR_MIFS_DATABASE_DIRECTORY]``. +You must make sure to create ``${HOME}/.bob_bio_databases.txt`` setting this +value to the place where you actually installed the MIFS Database, as +explained in the section :ref:`bob.pad.face.baselines`. +""" diff --git a/bob/pad/face/config/replay_attack.py b/bob/pad/face/config/replay_attack.py index aa73eb99470fa82571ad5b07a8a9cdfef216b549..d7e4b2594ea337f66255997bec20431781db12a3 100644 --- a/bob/pad/face/config/replay_attack.py +++ b/bob/pad/face/config/replay_attack.py @@ -40,7 +40,7 @@ database settings manner, respecting usage protocols. It does **not** contain the raw data files. You should procure those yourself. -Notice that ``original_directory`` is set to ``[YOUR_REPLAY_ATTACK_DIRECTORY]``. +Notice that ``original_directory`` is set to ``[YOUR_MIFS_DATABASE_DIRECTORY]``. You must make sure to create ``${HOME}/.bob_bio_databases.txt`` setting this value to the place where you actually installed the Replayattack Database, as explained in the section :ref:`bob.pad.face.baselines`. diff --git a/bob/pad/face/database/mifs.py b/bob/pad/face/database/mifs.py index 42673ee134f4d38e2df9db1b7ac5c9b3858bc67e..8f96ee4012fdbcf035bac42cb8bbc4a8591b9b88 100644 --- a/bob/pad/face/database/mifs.py +++ b/bob/pad/face/database/mifs.py @@ -78,8 +78,8 @@ class MIFSPadDatabase(FileListPadDatabase): def annotations(self, f): """ Return annotations for a given file object ``f``, which is an instance - of ``ReplayPadFile`` defined in the HLDI of the Replay-Attack DB. - The ``load()`` method of ``ReplayPadFile`` class (see above) + of ``MIFSPadFile`` defined in the HLDI of the MIFS DB. + The ``load()`` method of ``MIFSPadFile`` class (see above) returns a video, therefore this method returns bounding-box annotations for each video frame. The annotations are returned as dictionary of dictionaries.