Skip to content

Lihua-Jing/PAD

Repository files navigation

PAD

This is the code of the paper "PAD: Patch-Agnostic Defense against Adversarial Patch Attacks", without parallel acceleration.

Setup

conda create --name pad python=3.8
conda activate pad
pip install -r requirements.txt

Usage

python run-PAD.py
Remember to replace the file path with your own.
input_path: the dir path of the attacked images
save_path: the dir path where you want to save the defended images

About

Code for the paper "PAD: Patch-Agnostic Defense against Adversarial Patch Attacks" (CVPR 2024)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages