The code for the paper:
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Code for the paper:

External dependency: pyflann (

Place the pyflann library in your current directory


Step 1. Train the deep neural nets with softmax and WNLL activation functions

python python

Step 2. Attack the trained deep neural nets

python -method fgsm -epsilon 0.02

python -method fgsm -epsilon 0.02

The method and epsilon are adjustable, where we support fgsm, ifgsm, cwl2 attacks