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.
Our data is converted to .pt formation. You can make adversarial data using make_adv_normal.py.
You can download pretrained clean model from here. And put it to the direction './net_weights/Clean/wrn-28-10-dropout0.3.pth'.
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