Coder Social home page Coder Social logo

val-iisc / fast-feature-fool Goto Github PK

View Code? Open in Web Editor NEW
61.0 6.0 15.0 1.42 MB

Data independent universal adversarial perturbations

Home Page: http://val.serc.iisc.ernet.in/fast-feature-fool/

License: MIT License

Python 100.00%
adversarial-inputs cnn tensorflow

fast-feature-fool's Introduction

Fast Feature Fool

Code for the paper Fast Feature Fool: A data independent approach to universal adversarial perturbations

Konda Reddy Mopuri, Utsav Garg, R. Venkatesh Babu

This repository can be used to generate universal adversarial perturbations for 5 popular CNNs(VGG-F, CaffeNet, VGG-16, VGG-19, GoogLeNet) without using any data from the target distrubution.

sample perturbations

Usage

  • To generate a new perturbation give the following command
python train.py --network vggf
  • To evaluate the classification and fooling performace of the generated perturbation
python evaluate.py --network vggf --adv_im perturbations/perturbation_vggf_mean.npy --img_list <path to ilsvrc val list> --gt_labels <path to validation labels list>
  • The network argument can take the following five arguments vggf, caffenet, vgg16, vgg19 and googlenet

Precomputed perturbations

The perturbations has precomputed perturbations for five cnns,

Named perturbation_<cnn name>_mean.npy, use mean of activations as the loss function, these were used to report results in the paper.

Network Top-1 Accuracy Fooling Rate
VGG-F 53.43% 81.59%
CaffeNet 56.02% 80.92%
VGG-16 65.77% 47.10%
VGG-19 66.14% 43.62%
GoogLeNet 67.92% 56.44%

Reference

@inproceedings{mopuri-bmvc-2017,
  title={Fast Feature Fool: A data independent approach to universal adversarial perturbations},
  author={Mopuri, Konda Reddy and Garg, Utsav and Babu, R Venkatesh},
 booktitle = {Proceedings of the British Machine Vision Conference ({BMVC})},
 year = {2017}
}

Contact Utsav Garg if you have questions.

fast-feature-fool's People

Contributors

mopurikreddy avatar utsavgarg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fast-feature-fool's Issues

Add a license

Hi, thanks for releasing your code! Could you add a license file?

question

when i use (perturbation_googlenet_mean.npy) to evaluate fool_rate in googlenet ,i can not get the same result.
the model comes from torchvision.models, the npy was download from you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.