Branch: master
Find file History
Type Name Latest commit message Commit time
Failed to load latest commit information. Add Facenet Adversarial Faces example May 11, 2018 fixed facenet model definition Sep 28, 2018 ran Sep 27, 2018

FGSM against Facenet

This directory contains an implementation of the FGSM attack against one of the face recognition CNNs of the Facenet library. You can find a detailed article here.

How to run

In order to run this example you need to do the following:

  1. Install the Facenet library, download and align the LFW faces and download a pretrained Facenet model. You can do that following the next Facenet tutorial: (Running the validate_on_lfw script is not necessary). The datasets and the models folders must be in the folder of this example.

  2. Change the following line in the script with the name of the .pb file of the model you downloaded:

    model_path = "models/facenet/20170512-110547/20170512-110547.pb"
  3. Run the script: