Code for PyTorch implementation of adversarial reprogramming.
- PyTorch 0.4+
- Python 3.6
Train a ResNet18 on CIFAR10 using following code
python train.py
Then reprogram the ResNet18 to classify MNIST digits
python adv_reprogram.py
Ridiculously simple PyTorch implementation of adversarial reprogramming
PythonMIT
Code for PyTorch implementation of adversarial reprogramming.
Train a ResNet18 on CIFAR10 using following code
python train.py
Then reprogram the ResNet18 to classify MNIST digits
python adv_reprogram.py