Skip to content
/ CAD Public

code for paper "Continual Adversarial Defense"

Notifications You must be signed in to change notification settings

cc13qq/CAD

Repository files navigation

Code for paper "Continual Adversarial Defense".

Get Started

Datasets are CIFAR10.

Our codebase accesses the datasets from ./data/ and checkpoints from ./net_weights/ by default.

├── ...
├── data
│   
├── net_weights
│   
├── cifar10_online.py
├── ...

All of the adversarial data are generated using torchattacks. Please configure config_cifar10.py first.

Data

Our data is converted to .pt formation. You can make adversarial data using make_adv_normal.py.

Pretrained Model

You can download pretrained clean model from here. And put it to the direction './net_weights/Clean/wrn-28-10-dropout0.3.pth'.

Run

python cifar10_online.py

## Dependencies
python 3.8.8, PyTorch = 1.10.0, cudatoolkit = 11.7, torchattack, torchvision, tqdm, scikit-learn, mmcv, numpy, opencv-python, dlib, Pillow

About

code for paper "Continual Adversarial Defense"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages