LinQinLiang / SAPA

Repository of Scale-Agnostic Photorealistic Adversarial Pattern Attack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SAPA

Repository of Scale-Agnostic Photorealistic Adversarial Pattern Attack

Attack

  • Please download the weights and put them under SAPA/models/pretrained.

Classification model

  • Put the images to SAPA/test_imgs and specify their ground truth label under SAPA/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.)

Object detection model

Coming soon.

PQGAN Training

Coming Soon.

About

Repository of Scale-Agnostic Photorealistic Adversarial Pattern Attack

License:MIT License


Languages

Language:Python 100.0%