Repository of Scale-Agnostic Photorealistic Adversarial Pattern Attack
- Please download the weights and put them under
SAPA/models/pretrained
.
-
Put the images to
SAPA/test_imgs
and specify their ground truth label underSAPA/test_imgs/labels.txt
. -
Run
python attack.py
-
Attack results will be saved to
SAPA/attack_results
.(Notice that the images can be in any shape but please make sure the configurations in
attack.py
are changed correspondingly.)
Coming soon.
Coming Soon.