Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 1.14 KB

File metadata and controls

21 lines (13 loc) · 1.14 KB

Adversarially-Trained Deep Nets Transfer Better

This github repo contains the code used for the "Adversarially-Trained Deep Nets Transfer Better" paper

How to use

  1. Download all source models into models directory and save with the appropriate name:
  1. Install all dependencies:
  • pip install robustness
  • conda install pytorch==1.2.0 torchvision==0.4.0 cudatoolkit=10.0 -c pytorch
  1. If you want to train a single model, run the train.py file. For more info on the run-time inputs, run "python train.py --help".

  2. If you want to replicate the entire experiment run the tools/batch.py file. Keep in mind that this might take a considerable ammount of time since we fine-tune over 14 thousand models.

  3. Find the logs including the validation accuracy in the results/logs folder. Use the log_extractor.py file to extract all your logs into a nice csv format.