Skip to content
Snippets Groups Projects
Commit f8847c7f authored by Hatef OTROSHI's avatar Hatef OTROSHI
Browse files

update Readme

parent 50263e6a
No related branches found
No related tags found
No related merge requests found
Pipeline #61149 failed
.. -*- coding: utf-8 -*-
.. image:: https://img.shields.io/badge/docs-stable-yellow.svg
:target: https://www.idiap.ch/software/bob/docs/bob/bob.paper.wifs2021_biohashing_sota_face/stable/index.html
.. image:: https://img.shields.io/badge/docs-latest-orange.svg
:target: https://www.idiap.ch/software/bob/docs/bob/bob.paper.wifs2021_biohashing_sota_face/master/index.html
.. image:: https://gitlab.idiap.ch/bob/bob.paper.wifs2021_biohashing_sota_face/badges/master/pipeline.svg
:target: https://gitlab.idiap.ch/bob/bob.paper.wifs2021_biohashing_sota_face/commits/master
.. image:: https://gitlab.idiap.ch/bob/bob.paper.wifs2021_biohashing_sota_face/badges/master/coverage.svg
:target: https://www.idiap.ch/software/bob/docs/bob/bob.paper.wifs2021_biohashing_sota_face/master/coverage/index.html
.. image:: https://img.shields.io/badge/gitlab-project-0000c0.svg
:target: https://gitlab.idiap.ch/bob/bob.paper.wifs2021_biohashing_sota_face
.. image:: https://img.shields.io/pypi/v/bob.paper.wifs2021_biohashing_sota_face.svg
:target: https://pypi.python.org/pypi/bob.paper.wifs2021_biohashing_sota_face
=============
New package
=============
.. @author: Hatef OTROSHI <hatef.otroshi@idiap.ch>
============================================================================================================
On the Recognition Performance of BioHashing on state-of-the-art Face Recognition models
============================================================================================================
This package is part of the signal-processing and machine learning toolbox Bob_.
.. todo::
Installation
------------
The installation instructions are based on conda_ and works on **Linux systems
only**. Therefore, please `install conda`_ before continuing.
**Complete the sentence above to include one phrase about your
package! Once this is done, delete this to-do!**
For installation, please download the source code of this paper and unpack it. Then, you can create a conda
environment with the following command::
Installation
------------
$ cd bob.paper.wifs2021_biohashing_sota_face
# create the environment
$ conda create --name bob.paper.wifs2021_biohashing_sota_face --file package-list.txt
$ conda activate bob.paper.wifs2021_biohashing_sota_face # activate the environment
$ buildout
$ export wifs2021_biohashing_sota_face_path=$(pwd)
Downloading the datasets
------------------------
Two datasets are used in this study which are publicly available.
To download the datasets please refer to their websites:
* `MOBIO`_
* `LFW`_
Configuring the directories of the datasets
--------------------------------------------
Now that you have downloaded the four databases. You need to set the paths to
those in the configuration files. Bob_ supports a configuration file
(``~/.bobrc``) in your home directory to specify where the
databases are located. Please specify the paths for the database like below::
# Setup MOBIO directories
$ bob config set bob.db.mobio.directory [YOUR_MOBIO_IMAGE_DIRECTORY]
$ bob config set bob.db.mobio.annotation_directory [YOUR_MOBIO_ANNOTATION_DIRECTORY]
# Setup LFW directories
$ bob config set bob.db.lfw.directory [YOUR_LFW_IMAGE_DIRECTORY]
$ bob config set bob.bio.face.lfw.annotation_directory [YOUR_LFW_ANNOTATION_DIRECTORY]
Running the Experiments
------------------------
All the pipelines used in this paper are available in the `./experiments <experiments>` directory.
You can run each experiment you want from the mentioned directory. For example, to run the Baseline
for ArcFace on the LFW dataste, you need to run the following command in the corresponding directory::
$ cd experiments/LFW/ArcFace/Baseline/
$
$ # To run on SGE using Dask
$ $wifs2021_biohashing_sota_face_path/bin/bob bio pipelines vanilla-biometrics my_pipeline.py -l sge -o results -vvv
$ # To run locally
$ $wifs2021_biohashing_sota_face_path/bin/bob bio pipelines vanilla-biometrics my_pipeline.py -l $wifs2021_biohashing_sota_face_path/bob/paper/wifs2021_biohashing_sota_face/local.py -o results -vvv
To run all the experiments, you can use ``run_experiments.sh`` as following::
$ ./run_experiments.sh
**Note:** In `./run_experiments.sh <run_experiments.sh>`_ file, there is a variable ``run_on_grid`` which
executes the task on computaion grid (using dask_). If you have computaion grid, you can set it `True`,
otherwise you need to set it `False` to run the experiments locally.
Generating ROC Plots (Figure 2)
--------------------------------
To generate ROC plts (as in Figure 2 of the paper), you need to go to `evaluation/ROC <evaluation/ROC>` directory
and run the bash file::
$ cd evaluation/ROC
$ ./bash.sh
Complete bob's `installation`_ instructions. Then, to install this
package, run::
Generating TMR-L_BioHash Plots (Figure 3)
-------------------------------------------
To generate TMR vs L_BioHash plots (as in Figure 3 of the paper), you can use the notebook which is available in
`evaluation/TMR_LBhsh <evaluation/TMR_LBhsh>` directory.
$ conda install bob.paper.wifs2021_biohashing_sota_face
Generating Table 1
------------------------
To generate Table 1 of the paper, you can use the same notebook as for Figure 3, which is available in
`evaluation/TMR_LBhsh <evaluation/TMR_LBhsh>` directory.
Contact
-------
......@@ -44,5 +109,10 @@ development `mailing list`_.
.. Place your references here:
.. _bob: https://www.idiap.ch/software/bob
.. _dask: https://dask.org/
.. _installation: https://www.idiap.ch/software/bob/install
.. _mailing list: https://www.idiap.ch/software/bob/discuss
\ No newline at end of file
.. _mailing list: https://www.idiap.ch/software/bob/discuss
.. _conda: https://conda.io
.. _install conda: https://conda.io/docs/install/quick.html#linux-miniconda-install
.. _mobio: https://www.idiap.ch/dataset/mobio
.. _lfw: http://vis-www.cs.umass.edu/lfw/
\ No newline at end of file
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