Giter Site home page Giter Site logo

therajmaurya / fooling Goto Github PK

View Code? Open in Web Editor NEW

This project forked from evolving-ai-lab/fooling

0.0 1.0 0.0 4.27 MB

Code base for "Deep Neural Networks are Easily Fooled" CVPR 2015 paper

Makefile 0.46% Python 10.02% Shell 0.35% HTML 0.07% JavaScript 0.02% CSS 0.35% C++ 84.94% MATLAB 0.31% Cuda 2.46% Protocol Buffer 0.72% C 0.23% Ruby 0.08%

fooling's Introduction

Fooling Code

This is the code base used to reproduce the "fooling" images in the paper:

Nguyen A, Yosinski J, Clune J. "Deep Neural Networks are Easily Fooled: High Confidence Predictions for Unrecognizable Images". In Computer Vision and Pattern Recognition (CVPR), IEEE, 2015. Community Best Paper Award at CVPR.

If you use this software in an academic article, please cite:

@inproceedings{nguyen2015deep,
  title={Deep Neural Networks are Easily Fooled: High Confidence Predictions for Unrecognizable Images},
  author={Nguyen, Anh and Yosinski, Jason and Clune, Jeff},
  booktitle={Computer Vision and Pattern Recognition (CVPR), 2015 IEEE Conference on},
  year={2015},
  organization={IEEE}
}

For more information regarding the paper, please visit www.evolvingai.org/fooling

Requirements

This is an installation process that requires two main software packages (included in this package):

  1. Caffe: http://caffe.berkeleyvision.org
  • Our libraries installed to work with Caffe
    • Cuda 6.0
    • Boost 1.52
    • g++ 4.6
  1. Sferes: https://github.com/jbmouret/sferes2
  • Our libraries installed to work with Sferes
    • OpenCV 2.4.10
    • Boost 1.52
    • g++ 4.9 (a C++ compiler compatible with C++11 standard)

Note: These are specific versions of the two frameworks with our additional work necessary to produce the images as in the paper. They are not the same as their master branches.

Installation

Please see the Installation_Guide for more details.

Usage

  • An MNIST experiment (Fig. 4, 5 in the paper) can be run directly on a local machine (4-core) within a reasonable amount of time (around ~5 minutes or less for 200 generations).
  • An ImageNet experiment needs to be run on a cluster environment. It took us ~4 days x 128 cores to run 5000 generations and produce 1000 images (Fig. 8 in the paper).
  • How to configure an experiment to test the evolutionary framework quickly
  • To reproduce the gradient ascent fooling images (Figures 13, S3, S4, S5, S6, and S7 from the paper), see the documentation in the caffe/ascent directory. You'll need to use the ascent branch instead of master, because the two required versions of Caffe are different.

Updates

  • Our fork project here has support for the latest Caffe and experiments to create recognizable images instead of unrecognizable.

License

Please refer to the licenses of Sferes and Caffe projects.

fooling's People

Contributors

anguyen8 avatar yosinski avatar

Watchers

James Cloos avatar

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.