Commit fb28b9f4 authored by Yannick DAYER's avatar Yannick DAYER

Merge branch 'new-doc' into 'master'

Updating to the documentation

Closes #39

See merge request !114
parents af2ae899 030e7ab7
Pipeline #48044 passed with stages
in 9 minutes and 12 seconds
...@@ -10,6 +10,7 @@ parts ...@@ -10,6 +10,7 @@ parts
src src
develop-eggs develop-eggs
sphinx sphinx
build
dist dist
record.txt record.txt
results results
......
...@@ -37,14 +37,17 @@ MIFS Database ...@@ -37,14 +37,17 @@ MIFS Database
.. autoclass:: bob.pad.face.database.mifs.MIFSPadDatabase .. autoclass:: bob.pad.face.database.mifs.MIFSPadDatabase
Transformers
------------
Pre-processors Pre-processors
------------------------------ ==============
.. automodule:: bob.pad.face.preprocessor .. automodule:: bob.pad.face.preprocessor
Feature Extractors Feature Extractors
------------------------------ ==================
.. automodule:: bob.pad.face.extractor .. automodule:: bob.pad.face.extractor
......
This diff is collapsed.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
Library for Facial Presentation Attack Detection (PAD) Library for Facial Presentation Attack Detection (PAD)
======================================================== ========================================================
The Facial Presentation Attack Detection Library is an open source tool consisting of a The Facial Presentation Attack Detection Library is an open-source tool consisting of a
series of plugins for bob.pad.base_, our open-source biometric recognition series of plugins for bob.pad.base_, our open-source biometric recognition
platform. As a result, it is fully extensible using bob.pad.base_ documented platform. As a result, it is fully extensible using bob.pad.base_ documented
types and techniques. Please refer to the manual of that package for a thorough types and techniques. Please refer to the manual of that package for a thorough
......
...@@ -5,17 +5,17 @@ ...@@ -5,17 +5,17 @@
Setting up Databases Setting up Databases
====================== ======================
In order to run face PAD algorithms using this package, you'll need to make To run face PAD algorithms using this package, you'll need to make sure to
sure to download the raw files corresponding to the databases you'd like to download the raw files corresponding to the databases you'd like to process.
process. The raw files are **not** distributed with Bob_ software as biometric The raw files are **not** distributed with Bob_ software as biometric data is,
data is, to most countries, considered sensible data that cannot be obtained to most countries, considered sensible data that cannot be obtained without
without explicit licensing from a data controller. You must visit the websites explicit licensing from a data controller. You must visit the websites below,
below, sign the license agreements and then download the data before trying out sign the license agreements and then download the data before trying out to run
to run the baselines. the baselines.
.. note:: .. note::
If you're at the Idiap Research Institute in Switzlerand, the datasets in If you're at the Idiap Research Institute in Switzerland, the datasets in
the baselines mentioned in this guide are already downloaded and the baselines mentioned in this guide are already downloaded and
pre-installed on our shared file system. You don't need to re-download pre-installed on our shared file system. You don't need to re-download
databases. databases.
......
...@@ -12,77 +12,46 @@ in ``bob.pad.face``. ...@@ -12,77 +12,46 @@ in ``bob.pad.face``.
.. warning:: .. warning::
Algorithms introduced in this section might be in the process of publishing. Therefore, it is not Algorithms introduced in this section might be in the process of publishing.
allowed to publish results introduced in this section without permission of the owner of the package. Therefore, it is not allowed to publish results introduced in this section
If you are planning to use the results from this section, please contact the owner of the package first. without the permission of the owner of the package.
If you are planning to use the results from this section, please contact the
owner of the package first.
Please check the ``setup.py`` for contact information. Please check the ``setup.py`` for contact information.
Running face PAD Experiments Running face PAD Experiments
------------------------------ ------------------------------
To run the PAD experiments, the ``spoof.py`` script located in ``bin`` directory is used. To run the PAD experiments, use the ``bob pad`` command.
To see the description of the script you can type in the console: To see the description of this command you can type in the console:
.. code-block:: sh .. code-block:: sh
$ spoof.py --help $ bob pad --help
This script is explained in more detail in :ref:`bob.pad.base.experiments`. This script is explained in more detail in :ref:`bob.pad.base`.
Usually it is a good idea to have at least verbose level 2 (i.e., calling Usually, it is a good idea to have at least verbose level 2 (i.e., calling
``spoof.py --verbose --verbose``, or the short version ``spoof.py ``bob pad --verbose --verbose``, or the short version ``bob pad -vv``).
-vv``).
.. note:: **Running in Parallel** .. note:: **Running in Parallel**
To run the experiments in parallel, you can define an SGE grid or local host To run the experiments in parallel, you can use an existing or (define a new)
(multi-processing) configurations as explained in SGE grid or local host multiprocessing configuration. To run the experiment
:ref:`running_in_parallel`. in the Idiap SGE grid, you can simply add the ``--dask-client sge`` command
line option. To run experiments in parallel on the local machine, add the
``--dask-client local-parallel`` option.
In short, to run in the Idiap SGE grid, you can simply add the ``--grid`` See :ref:`this <bob.bio.base.vanilla_biometrics_advanced_features>` for more
command line option, with grid configuration parameters. To run experiments in parallel on details on dask configurations.
the local machine, simply add a ``--parallel <N>`` option, where ``<N>``
specifies the number of parallel jobs you want to execute.
Database setups and face PAD algorithms are encoded using Database setups and face PAD algorithms are encoded using
``bob.bio.base.configuration-files``, all stored inside the package root, in ``bob.bio.base.configuration-files``, all stored inside the package structure,
the directory ``bob/pad/face/config``. Documentation for each resource in the directory ``bob/pad/face/config``. Documentation for each resource
is available on the section :ref:`bob.pad.face.resources`. is available on the section :ref:`bob.pad.face.resources`.
.. warning::
You **cannot** run experiments just by executing the command line
instructions described in this guide. You **need first** to procure yourself
the raw data files that correspond to *each* database used here in order to
correctly run experiments with those data. Biometric data is considered
private date and, under EU regulations, cannot be distributed without a
consent or license. You may consult our
:ref:`bob.pad.face.resources.databases` resources section for checking
currently supported databases and accessing download links for the raw data
files.
Once the raw data files have been downloaded, particular attention should be
given to the directory locations of those. Unpack the databases carefully
and annotate the root directory where they have been unpacked.
Then, carefully read the *Databases* section of
:ref:`bob.pad.base.installation` on how to correctly setup the
``~/.bob_bio_databases.txt`` file.
Use the following keywords on the left side of the assignment (see
:ref:`bob.pad.face.resources.databases`):
.. code-block:: text
[YOUR_REPLAY_ATTACK_DIRECTORY] = /complete/path/to/replayattack-database/
Notice it is rather important to use the strings as described above,
otherwise ``bob.pad.base`` will not be able to correctly load your images.
Once this step is done, you can proceed with the instructions below.
.. include:: links.rst .. include:: links.rst
......
...@@ -18,7 +18,8 @@ Databases ...@@ -18,7 +18,8 @@ Databases
------------ ------------
These configuration files/resources contain parameters of available databases. These configuration files/resources contain parameters of available databases.
The configuration files contain at least the following arguments of the ``spoof.py`` script: The configuration files contain at least the following arguments of the
``bob pad vanilla-pad`` command:
* ``database`` * ``database``
* ``protocol`` * ``protocol``
...@@ -57,13 +58,12 @@ MIFS Database ...@@ -57,13 +58,12 @@ MIFS Database
Available face PAD systems Available face PAD systems
------------------------------ ------------------------------
These configuration files/resources contain parameters of available face PAD systems/algorithms. These configuration files/resources contain parameters of available face PAD
The configuration files contain at least the following arguments of the ``spoof.py`` script: systems/algorithms.
The configuration files contain at least the following arguments of the
``bob pad vanilla-pad`` command:
* ``sub_directory`` * ``pipeline`` containing zero, one, or more Transformers and one Classifier
* ``preprocessor``
* ``extractor``
* ``algorithm``
.. _bob.pad.face.resources.face_pad.lbp_svm_replayattack: .. _bob.pad.face.resources.face_pad.lbp_svm_replayattack:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment