Coder Social home page Coder Social logo

features-adversarial-det's Introduction

Adversarial examples detection in features distance spaces

This repo contains code to reproduce the experiments presented in "Adversarial examples detection in features distance spaces". The code trains models for adversarial detection based on intermediate features of the attacked classifier embedded into dissimilarity spaces.

Requirements

The main requirements are:

and can be installed with:

pip3 install -r requirements.txt

You will also need the following datasets to replicate the experiments:

Steps to reproduce experiments

  • Create the folder images/original in the project folder and put the NIPS DEV images in it
  • Modify the IMAGENET variable in reproduce.sh to point to the folder containing the ILSVRC'12 dataset (the script will point to the $IMAGENET/train/ folder)
  • Run reproduce.sh
./reproduce.sh

The reproduce.sh bash script runs all the steps needed to reproduce the experiments presented in the paper, that is:

  1. Features extraction from ILSVRC'12 TRAIN dataset
  2. Class centroid / medoid computation
  3. Generation of adversarial examples
  4. Training of multiple detectors
  5. Reproducing ROC plots

features-adversarial-det's People

Contributors

fabiocarrara avatar

Stargazers

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

Watchers

 avatar

features-adversarial-det's Issues

Hello, I have the following questions about this paper.

1.I wonder if only adversarial examples are needed when training the detector? Need an original image? Or do you need labels for adversarial examples?
2.Hello, I would like to know when ‘the Features extraction from ILSVRC'12 TRAIN dataset’, do you use all the training set images? How many images did you use, if not all the images in the training set?
3.I want to know what adversarial_stats.py is mainly used for?

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.