Skip to content
Snippets Groups Projects
user avatar
b3ba7e73

Spoofing Deep Face Recognition with Custom Silicone Masks

This package is part of the signal-processing and machine learning toolbox Bob. It contains the source code to reproduce the following paper:

@article{,
          title = {Spoofing Deep Face Recognition with Custom Silicone Masks},
}

Installation

The installation instructions are based on conda and works on Linux systems only. Install conda before continuing.

Once you have installed conda, download the source code of this paper and unpack it. Then, you can create a conda environment with the following command:

$ cd bob.paper.btas2018_siliconemask
$ conda env create -f environment.yml
$ conda activate bob.paper.btas2018_siliconemask  # activate the environment
$ buildout

This will install all the required software to reproduce this paper.

Downloading the dataset

The dataset used in this study is publicly available. To download the dataset please refer to its websites: `CSMAD`_

Downloading the face recognition models

Pre-trained face recognition (FR) models can be downloaded from their respective website as well.

The code will automatically download the VGG Face and LightCNN models and will place them in the right place. So you may skip downloading those manually. Please unzip the FaceNet model in the source directory with the name 20170512-110547.

Configuring the experiments

Now that you have downloaded the database. You need to set the path to the database in the configuration file. Bob supports a configuration file (~/.bob_bio_databases.txt) in your home directory to specify where the databases are located. Please specify the paths for the database like below (by editing the file manually)

$ cat ~/.bob_bio_databases.txt
[CSMAD_DIRECTORY] = /databases/CSMAD

Running the experiments

A bash script is provided to help you run the code. You need to specify a directory to save the intermediate files. For example:

$ export RESULTS_DIR=$HOME/idiap/CSMAD

Then, run:

$ ./run.sh

Contact

For questions or reporting issues to this software package, contact our development mailing list.