GithubHelp home page GithubHelp logo

jxcwu / magnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trevillie/magnet

0.0 1.0 0.0 13 KB

MagNet: a Two-Pronged Defense against Adversarial Examples

License: BSD 2-Clause "Simplified" License

Python 100.00%

magnet's Introduction

MagNet

Demo code for "MagNet: a Two-Pronged Defense against Adversarial Examples", by Dongyu Meng and Hao Chen, at CCS 2017.

The code demos black-box defense against Carlini's L2 attack of various confidences. Other techniques proposed in the paper are also included in defensive_models.py and worker.py, but are not shown in the demo defense. Attack implementations are not provided in this repository.

Run the demo code:

  1. Make sure you have Keras, Tensorflow, numpy, scipy, and matplotlib installed.
  2. Clone the repository.
  3. We provide demo attack data and classifier on Dropbox and 百度网盘 (密码: yzt4). Please download and put the unzipped files in MagNet/. You may also use your own data for test.
  4. Train autoencoders with python3 train_defense.py.
  5. Test the defense with python3 test_defense.py .
  6. Defense performance is plotted in graph/defense_performance.pdf.

magnet's People

Contributors

trevillie avatar

Watchers

 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.