GithubHelp home page GithubHelp logo

kira0096 / cgattack Goto Github PK

View Code? Open in Web Editor NEW
24.0 1.0 1.0 37 KB

Official repository for CVPR 2022 paper 'Boosting Black-Box Attack with Partially Transferred Conditional Adversarial Distribution'

Python 97.22% Shell 2.78%

cgattack's Introduction

Official repository for CVPR 2022 paper Boosting Black-Box Attack with Partially Transferred Conditional Adversarial Distribution.

This project is developed based on Python 3.6.

Install prerequisites

pip install -r requirements.txt

Download pre-trained model

Download the pretrained models and dataset [download link] and unzip it with

unzip pretrained.zip

Then you can conduct the untargeted attack for CIFAR-10 evaluation without training.

Robustness evaluation

  • Evaluate our CG-ES against TARGET_MODEL [resnet.sh|densenet.sh|vgg.sh|pyramidnet.sh] by running
sh scripts/cifar_unt/TARGET_MODEL

Citation

Please cite our paper in your publications if it helps your research:

@inproceedings{Feng_CGATTACK_2022,
  title={Boosting Black-Box Attack with Partially Transferred Conditional Adversarial Distribution},
  author={Feng, Yan and Wu, Baoyuan and Fan, Yanbo and Liu, Li and Li, Zhifeng and Xia, Shutao},
  booktitle={IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
  year={2022}
}

cgattack's People

Contributors

kira0096 avatar

Stargazers

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

Watchers

 avatar

Forkers

nathenial

cgattack's Issues

My experimental result for attacking resnet with target class 0 in Cifar is worse than Table 1.

I test the target attack with target class 0 against resNet by using their pretrained model on their provided testset, and find that the avg/median. query i 1238/751, which are larger than 696/421 in Table 1 of the paper.

My 1238/751 result is obtained by setting the targetn as resnet and loading the CGlow with your provided resnet_model.pth.tar on your provided 1000 images of test_cifar.npy. The attack parameters is the default value of your resnet.sh except for setting the target class as 0 as the same of Table 1. Of course, I filter images with the ground truth class 0.

Is there any parameter setting inconsistent with yours? Thank you very much for your response.

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.