GithubHelp home page GithubHelp logo

pytorch-adversarial-examples's Introduction

Adversarial Examples

PyTorch implementation following algorithms:

  • Fast Gradient Sign Method (FGSM) [1]
  • Basic Iterative Method (BIM) [2]
  • DeepFool [3]

Prerequisites

  • Python 3.5.2
  • PyTorch 0.4.0
  • torchvision 0.2.1
  • NumPy 1.14.3

Usage

$ python main.py

Dataset

Results

Clean

Label: 0 Label: 1 Label: 2 Label: 3 Label: 4 Label: 5 Label: 6 Label: 7 Label: 8 Label: 9

FGSM (eps=0.15)

Label: 2 Label: 8 Label: 1 Label: 2 Label: 9 Label: 3 Label: 5 Label: 2 Label: 1 Label: 7

BIM (eps=0.15, eps_iter=0.01, n_iter=50)

Label: 7 Label: 8 Label: 3 Label: 2 Label: 9 Label: 3 Label: 5 Label: 2 Label: 1 Label: 7

DeepFool (max_iter=50)

Label: 9 Label: 8 Label: 3 Label: 8 Label: 9 Label: 3 Label: 5 Label: 8 Label: 3 Label: 7

Reference

[1] Ian J. Goodfellow, Jonathon Shlens, Christian Szegedy. Explaining and Harnessing Adversarial Examples. ICLR, 2015

[2] Alexey Kurakin, Ian J. Goodfellow, Samy Bengio. Adversarial Examples in the Physical World. arXiv, 2016

[3] Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Pascal Frossard. DeepFool: A Simple and Accurate Method to Fool Deep Neural Networks. CVPR, 2016

Author

Kuan-Hao Huang / @ej0cl6

pytorch-adversarial-examples's People

Contributors

ej0cl6 avatar kh-huang avatar

Stargazers

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

Watchers

 avatar  avatar

pytorch-adversarial-examples's Issues

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.