Brief instructions to run NC.py and pt-red.py on CIFAR-10 models.
- Python 3.8+
- See
requirements.txt
pip install -r requirements.txtThese come from the *_model.pth files in this folder:
badnetblend1pixelchessclean
badnet: 9blend: 81pixel: 4chess: 5clean: none
From this folder:
python NC.py --model_dir badnet
python pt-red.py --model_dir badnetExample with another model:
python NC.py --model_dir cleanNotes:
- The scripts download CIFAR-10 to
./dataon first run. pt-red.pycreates./<model_dir>/pert_estimatedfor outputs.