Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (24 sloc) 1.32 KB

Code for "Learning Perceptually-Aligned Representations via Adversarial Robustness"

These are notebooks for reproducing our paper "Learning Perceptually-Aligned Representations via Adversarial Robustness" (preprint, blog).

Running the notebooks

Steps to run the notebooks (for now, requires CUDA):

  • Clone this repository with --recurse-submodules to include submodules (--recursive pre-Git 2.13)
  • Download our models from S3: CIFAR-10, Restricted ImageNet
  • Make a models folder in the main repository folder, and save the checkpoints there
  • Install all the required packages with pip install -r requirements.txt
  • Edit to point to PyTorch-formatted versions of the CIFAR and ImageNet datasets
  • Start a jupyter notebook server: PYTHONPATH=robustness_lib/ jupyter notebook . --ip


    title={Learning Perceptually-Aligned Representations via Adversarial Robustness},
    author={Logan Engstrom and Andrew Ilyas and Shibani Santurkar and Dimitris Tsipras and Brandon Tran and Aleksander Madry},
    booktitle={ArXiv preprint arXiv:1906.00945},
You can’t perform that action at this time.