Code Monkey home page Code Monkey logo

bbattacks's Introduction

BBAttacks

Black-Box Adversarial Attacks for Image Classifiers

Structure

  • attacks contains all the classes encapsulating various BB attacks: MAB, epsilon-greedy, EvoBA, (our version of) SimBA, etc
  • models contains models artifacts (usually, most will be left out because of their big dimensions)
  • notebooks contains multiple experiments we've been running (in the ipynb format). Most notably, the cifar_10_experiments.ipynb and imagenet_experiments.ipynb were used in the EvoBA: An Evolution Strategy as a Strong Baseline for Black-Box Adversarial Attacks paper experiments
  • utils contains various helper functions
  • run_evoba.py is a simple script that runs EvoBA against custom models and tasks. Sample usage:
python run_robustness_checks.py
    --model_path "models/cifar100vgg/cifar100vgg.py" 
    --model_class_name "cifar100vgg" 
    --task "cifar100" 
    --sample_size 100

Important note about EvoBA

As there are multiple experiments and attacks in this repo, we provide a pack with the minimal necessary scripts and notebooks to replicate the EvoBA results from EvoBA: An Evolution Strategy as a Strong Baseline for Black-Box Adversarial Attacks. This pack includes the used data and models as well. It can be found here: https://drive.google.com/file/d/1OVn3w0VBtW5x84LTsJUymgqYlnJKwCtA/view?usp=sharing

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.