├── .gitignore ├── README.md ├── adversarial ├── __init__.py ├── attacks.py ├── datasets.py ├── functional.py ├── models.py └── utils.py ├── assets └── pgd_attack_imagenet_example.png ├── config.py ├── models ├── mnist_iterated_fgsm_k=40_step=0.01_eps=0.3.pt ├── mnist_natural.pt └── mnist_pgd_k=40_step=0.1_eps=3.0.pt ├── notebooks ├── Creating_And_Defending_From_Adversarial_Examples.ipynb └── Make_Diagrams.ipynb ├── requirements.txt ├── scripts ├── experiments.txt ├── train_adversarial.py └── train_natural.py └── tests ├── __init__.py ├── test_datasets.py ├── test_functional.py └── test_utils.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oscarknagg/adversarial/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oscarknagg/adversarial/HEAD/README.md -------------------------------------------------------------------------------- /adversarial/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /adversarial/attacks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oscarknagg/adversarial/HEAD/adversarial/attacks.py -------------------------------------------------------------------------------- /adversarial/datasets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oscarknagg/adversarial/HEAD/adversarial/datasets.py -------------------------------------------------------------------------------- /adversarial/functional.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oscarknagg/adversarial/HEAD/adversarial/functional.py -------------------------------------------------------------------------------- /adversarial/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oscarknagg/adversarial/HEAD/adversarial/models.py -------------------------------------------------------------------------------- /adversarial/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oscarknagg/adversarial/HEAD/adversarial/utils.py -------------------------------------------------------------------------------- /assets/pgd_attack_imagenet_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oscarknagg/adversarial/HEAD/assets/pgd_attack_imagenet_example.png -------------------------------------------------------------------------------- /config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oscarknagg/adversarial/HEAD/config.py -------------------------------------------------------------------------------- /models/mnist_iterated_fgsm_k=40_step=0.01_eps=0.3.pt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oscarknagg/adversarial/HEAD/models/mnist_iterated_fgsm_k=40_step=0.01_eps=0.3.pt -------------------------------------------------------------------------------- /models/mnist_natural.pt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oscarknagg/adversarial/HEAD/models/mnist_natural.pt -------------------------------------------------------------------------------- /models/mnist_pgd_k=40_step=0.1_eps=3.0.pt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oscarknagg/adversarial/HEAD/models/mnist_pgd_k=40_step=0.1_eps=3.0.pt -------------------------------------------------------------------------------- /notebooks/Creating_And_Defending_From_Adversarial_Examples.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oscarknagg/adversarial/HEAD/notebooks/Creating_And_Defending_From_Adversarial_Examples.ipynb -------------------------------------------------------------------------------- /notebooks/Make_Diagrams.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oscarknagg/adversarial/HEAD/notebooks/Make_Diagrams.ipynb -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oscarknagg/adversarial/HEAD/requirements.txt -------------------------------------------------------------------------------- /scripts/experiments.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oscarknagg/adversarial/HEAD/scripts/experiments.txt -------------------------------------------------------------------------------- /scripts/train_adversarial.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oscarknagg/adversarial/HEAD/scripts/train_adversarial.py -------------------------------------------------------------------------------- /scripts/train_natural.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oscarknagg/adversarial/HEAD/scripts/train_natural.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_datasets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oscarknagg/adversarial/HEAD/tests/test_datasets.py -------------------------------------------------------------------------------- /tests/test_functional.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oscarknagg/adversarial/HEAD/tests/test_functional.py -------------------------------------------------------------------------------- /tests/test_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oscarknagg/adversarial/HEAD/tests/test_utils.py --------------------------------------------------------------------------------