/CPA

Primary LanguagePythonMIT LicenseMIT

Corruption-assisted Physical Attacks

Requirements

  • To install requirements:
    • pytorch3d: 0.6.0
    • torch: 1.8.0
    • torchvision: 0.9.0

📋 you need to download dataset and model weight before running the code:

Optimizing the generator

To train the generaotr in the paper, run this command:

python attack_ViTDet.py --train_dir <path_to_data> --weightfile <path_to_weight>   

Generating adversarial examples

After training, the weights of the generator are saved at 'auxNetWeight', which can be used to create adversarial examples by running this command:

python generate_adv_examples.py