Giter Club home page Giter Club logo

dag's Introduction

Adversarial Examples for Semantic Segmentation and Object Detection

This repo privdes a simple algorithm, Dense Adversary Generation (DAG), to find adversarial examples for semantic segmentation and object detection (https://arxiv.org/abs/1703.08603). An adversarial example which let both the detection network and the segmentation network fail is shown below:

Demo Image

Code

generate_config.m

The config arguments:

  • model_select: models used for generating adversarial examples.
  • MAX_ITER: max iteration number for generating adversarial examples (default = 150 for detection, = 200 for segmentation).
  • step-length: max pixel value change at each iteration (default = 0.5)
  • net_model: network model where the last layer (loss) is removed and backward is enabled.
  • net_weight: network weight
  • for segmentation
    • shape: the segmenation shape of the adversarial example: circle, diamond, strip.

demo.m

A simple demo which computes the adversarial examples for object detection and semantic segmentation algorithms, the output includes:

  1. visualization of segmentation or detection result of the adversarial example;
  2. visualization of original image X, adversarial examples X + r, adversarial perturbation r.

Software Requirements

  1. Caffe should use the version from Microsoft (https://github.com/Microsoft/caffe) which supports the roi_pooling_layer
  2. Caffe must be complied with 'matcaffe'

Citing DAG

If you find DAG is useful in your research, please consider citing:

@inproceedings{xie2017adversarial,
    title={Adversarial Examples for Semantic Segmentation and Object Detection},
    author={Xie, Cihang and Wang, Jianyu and Zhang, Zhishuai and Zhou, Yuyin and Xie, Lingxi and Yuille, Alan},
    Booktitle={International Conference on Computer Vision},
    year={2017},
    organization={IEEE}
}

dag's People

Contributors

cihangxie avatar bairdzhang 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.