Skip to content

Latest commit

 

History

History

Adversarial

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Adversarial example generator

This script generates adversarial examples for convolutional neural networks using fast gradient sign method presented in Explaining and harnessing adversarial examples (Goodfellow et al. 2015).

Dependency

This script requires trained OverFeat network. Running the example.lua or the snippet will automatically create the model and download other files.

git clone https://github.com/jhjin/overfeat-torch
cd overfeat-torch
. install.sh
th run.lua
mv model.t7 bee.jpg overfeat_label.lua ..
cd ..

Example

The example script predicts the output category of original and its adversarial examples.

th example.lua