├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── SECURITY.md ├── SUPPORT.md ├── assets ├── jet_sim.PNG └── jet_texture.PNG ├── docker ├── Dockerfile ├── launch.py ├── mitsuba.conf ├── optix7_installer └── run_imagenet.sh ├── requirements.txt └── src ├── .gitignore ├── __init__.py ├── better_corruptions ├── README.md ├── fast_corruptions │ ├── __init__.py │ ├── benchmark.py │ ├── configs │ │ ├── __init__.py │ │ ├── fixed_config_cifar.py │ │ └── fixed_config_imagenet.py │ ├── ext_files │ │ ├── __init__.py │ │ ├── frost.pt │ │ ├── frost_imgs │ │ │ ├── frost1.png │ │ │ ├── frost2.png │ │ │ ├── frost3.png │ │ │ ├── frost4.jpg │ │ │ ├── frost5.jpg │ │ │ └── frost6.jpg │ │ ├── make_cifar_c.py │ │ └── make_imagenet_c.py │ └── gpu_corruptions │ │ ├── __init__.py │ │ ├── blur.py │ │ ├── image.py │ │ ├── noise.py │ │ ├── utils.py │ │ └── weather.py ├── requirements.txt └── run.sh ├── boosters ├── __init__.py ├── best_image_as_patch.py ├── boosted_models.py ├── class_consistent_booster.py ├── generic_booster.py ├── qrcode.py └── three_d_booster.py ├── configs └── config.json ├── constants.py ├── evaluate_corruptions.py ├── extract_2Dpatch.py ├── main.py ├── resources ├── bus.ply ├── car.ply ├── ship.ply ├── truck.ply └── warplane_highpoly.ply └── utils ├── __init__.py ├── custom_datasets.py ├── render.py └── utils.py /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/SECURITY.md -------------------------------------------------------------------------------- /SUPPORT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/SUPPORT.md -------------------------------------------------------------------------------- /assets/jet_sim.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/assets/jet_sim.PNG -------------------------------------------------------------------------------- /assets/jet_texture.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/assets/jet_texture.PNG -------------------------------------------------------------------------------- /docker/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/docker/Dockerfile -------------------------------------------------------------------------------- /docker/launch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/docker/launch.py -------------------------------------------------------------------------------- /docker/mitsuba.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/docker/mitsuba.conf -------------------------------------------------------------------------------- /docker/optix7_installer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/docker/optix7_installer -------------------------------------------------------------------------------- /docker/run_imagenet.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/docker/run_imagenet.sh -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/requirements.txt -------------------------------------------------------------------------------- /src/.gitignore: -------------------------------------------------------------------------------- 1 | .ipynb_checkpoints 2 | -------------------------------------------------------------------------------- /src/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/better_corruptions/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/better_corruptions/README.md -------------------------------------------------------------------------------- /src/better_corruptions/fast_corruptions/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/better_corruptions/fast_corruptions/benchmark.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/better_corruptions/fast_corruptions/benchmark.py -------------------------------------------------------------------------------- /src/better_corruptions/fast_corruptions/configs/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/better_corruptions/fast_corruptions/configs/__init__.py -------------------------------------------------------------------------------- /src/better_corruptions/fast_corruptions/configs/fixed_config_cifar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/better_corruptions/fast_corruptions/configs/fixed_config_cifar.py -------------------------------------------------------------------------------- /src/better_corruptions/fast_corruptions/configs/fixed_config_imagenet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/better_corruptions/fast_corruptions/configs/fixed_config_imagenet.py -------------------------------------------------------------------------------- /src/better_corruptions/fast_corruptions/ext_files/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/better_corruptions/fast_corruptions/ext_files/frost.pt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/better_corruptions/fast_corruptions/ext_files/frost.pt -------------------------------------------------------------------------------- /src/better_corruptions/fast_corruptions/ext_files/frost_imgs/frost1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/better_corruptions/fast_corruptions/ext_files/frost_imgs/frost1.png -------------------------------------------------------------------------------- /src/better_corruptions/fast_corruptions/ext_files/frost_imgs/frost2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/better_corruptions/fast_corruptions/ext_files/frost_imgs/frost2.png -------------------------------------------------------------------------------- /src/better_corruptions/fast_corruptions/ext_files/frost_imgs/frost3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/better_corruptions/fast_corruptions/ext_files/frost_imgs/frost3.png -------------------------------------------------------------------------------- /src/better_corruptions/fast_corruptions/ext_files/frost_imgs/frost4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/better_corruptions/fast_corruptions/ext_files/frost_imgs/frost4.jpg -------------------------------------------------------------------------------- /src/better_corruptions/fast_corruptions/ext_files/frost_imgs/frost5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/better_corruptions/fast_corruptions/ext_files/frost_imgs/frost5.jpg -------------------------------------------------------------------------------- /src/better_corruptions/fast_corruptions/ext_files/frost_imgs/frost6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/better_corruptions/fast_corruptions/ext_files/frost_imgs/frost6.jpg -------------------------------------------------------------------------------- /src/better_corruptions/fast_corruptions/ext_files/make_cifar_c.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/better_corruptions/fast_corruptions/ext_files/make_cifar_c.py -------------------------------------------------------------------------------- /src/better_corruptions/fast_corruptions/ext_files/make_imagenet_c.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/better_corruptions/fast_corruptions/ext_files/make_imagenet_c.py -------------------------------------------------------------------------------- /src/better_corruptions/fast_corruptions/gpu_corruptions/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/better_corruptions/fast_corruptions/gpu_corruptions/__init__.py -------------------------------------------------------------------------------- /src/better_corruptions/fast_corruptions/gpu_corruptions/blur.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/better_corruptions/fast_corruptions/gpu_corruptions/blur.py -------------------------------------------------------------------------------- /src/better_corruptions/fast_corruptions/gpu_corruptions/image.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/better_corruptions/fast_corruptions/gpu_corruptions/image.py -------------------------------------------------------------------------------- /src/better_corruptions/fast_corruptions/gpu_corruptions/noise.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/better_corruptions/fast_corruptions/gpu_corruptions/noise.py -------------------------------------------------------------------------------- /src/better_corruptions/fast_corruptions/gpu_corruptions/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/better_corruptions/fast_corruptions/gpu_corruptions/utils.py -------------------------------------------------------------------------------- /src/better_corruptions/fast_corruptions/gpu_corruptions/weather.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/better_corruptions/fast_corruptions/gpu_corruptions/weather.py -------------------------------------------------------------------------------- /src/better_corruptions/requirements.txt: -------------------------------------------------------------------------------- 1 | robustness 2 | opencv-python 3 | scikit-image 4 | wand 5 | kornia==0.4.0 -------------------------------------------------------------------------------- /src/better_corruptions/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/better_corruptions/run.sh -------------------------------------------------------------------------------- /src/boosters/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/boosters/__init__.py -------------------------------------------------------------------------------- /src/boosters/best_image_as_patch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/boosters/best_image_as_patch.py -------------------------------------------------------------------------------- /src/boosters/boosted_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/boosters/boosted_models.py -------------------------------------------------------------------------------- /src/boosters/class_consistent_booster.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/boosters/class_consistent_booster.py -------------------------------------------------------------------------------- /src/boosters/generic_booster.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/boosters/generic_booster.py -------------------------------------------------------------------------------- /src/boosters/qrcode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/boosters/qrcode.py -------------------------------------------------------------------------------- /src/boosters/three_d_booster.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/boosters/three_d_booster.py -------------------------------------------------------------------------------- /src/configs/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/configs/config.json -------------------------------------------------------------------------------- /src/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/constants.py -------------------------------------------------------------------------------- /src/evaluate_corruptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/evaluate_corruptions.py -------------------------------------------------------------------------------- /src/extract_2Dpatch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/extract_2Dpatch.py -------------------------------------------------------------------------------- /src/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/main.py -------------------------------------------------------------------------------- /src/resources/bus.ply: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/resources/bus.ply -------------------------------------------------------------------------------- /src/resources/car.ply: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/resources/car.ply -------------------------------------------------------------------------------- /src/resources/ship.ply: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/resources/ship.ply -------------------------------------------------------------------------------- /src/resources/truck.ply: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/resources/truck.ply -------------------------------------------------------------------------------- /src/resources/warplane_highpoly.ply: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/resources/warplane_highpoly.ply -------------------------------------------------------------------------------- /src/utils/__init__.py: -------------------------------------------------------------------------------- 1 | from .utils import * -------------------------------------------------------------------------------- /src/utils/custom_datasets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/utils/custom_datasets.py -------------------------------------------------------------------------------- /src/utils/render.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/utils/render.py -------------------------------------------------------------------------------- /src/utils/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/unadversarial/HEAD/src/utils/utils.py --------------------------------------------------------------------------------