Skip to content

[ICCV 2023] Structure Invariant Transformation for better Adversarial Transferability

License

Notifications You must be signed in to change notification settings

xiaosen-wang/SIT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Structure Invariant Attack

This repository contains code to reproduce results from the paper:

Structure Invariant Transformation for better Adversarial Transferability (ICCV 2023)

Xiaosen Wang, Zeliang Zhang, Jianping Zhang

The transformed images generated by various transformations.

We also include the code in the framework TransferAttack.

Requirements

  • Python >= 3.6.5
  • Numpy >= 1.15.4
  • opencv >= 3.4.2
  • scipy > 1.1.0
  • pandas >= 1.0.1
  • imageio >= 2.6.1
  • pytorch >= 1.14.0
  • torchvision >= 0.13

Qucik Start

Prepare the data and models

You should download the data offered by Admix and place it in Input/data with label file val_rs.csv in Input.

Runing attack

Taking SIA attack for example, you can run this attack as following:

CUDA_VISIBLE_DEVICES=gpuid python main.py --model model_name  

Evaluating the attack

The generated adversarial examples would be stored in directory ./outputs. Then run the file main.py with eval to evaluate the success rate of each model used in the paper:

CUDA_VISIBLE_DEVICES=gpuid python main.py --eval

Citation

If you find the idea or code useful for your research, please consider citing our paper:

@inproceedings{wang2023structure,
     title={{Structure Invariant Transformation for better Adversarial Transferability}},
     author={Xiaosen Wang and Zeliang Zhang and Jianping Zhang},
     booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
     year={2023}
}

About

[ICCV 2023] Structure Invariant Transformation for better Adversarial Transferability

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages