AdvDrop
AdvDrop copied to clipboard
Code for "Adversarial attack by dropping information." (ICCV 2021)
AdvDrop
Code for "AdvDrop: Adversarial Attack to DNNs by Dropping Information(ICCV 2021)."
Installation
We highly recommend using conda.
conda create -n advdrop_env python=3.7
source activate advdrop_env
After activating the virtual environment, install pytorch, numpy and torchattacks with:
pip install --user [the package name]
Download dataset.
Usage
Quick Start
python infod_sample.py
- Parameters can be speicified in infod_sample.py.
An example
Adv Images
Acknowledgments
- We refered Michael's code for JPEG (torch version) part.
- We referred [Harry's code style] (https://github.com/Harry24k/adversarial-attacks-pytorch)
Citation