Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 745 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 745 Bytes

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