├── README.md ├── config_cifar.json ├── config_imagenet.json ├── config_mnist.json ├── dataloader ├── __init__.py ├── __pycache__ │ ├── __init__.cpython-36.pyc │ ├── __init__.cpython-37.pyc │ ├── cifar10_input.cpython-36.pyc │ ├── cifar10_input.cpython-37.pyc │ ├── imagenet_input_new.cpython-36.pyc │ ├── imagenet_input_new.cpython-37.pyc │ ├── mnist_input.cpython-36.pyc │ └── mnist_input.cpython-37.pyc ├── cifar10_input.py ├── imagenet_input.py ├── imagenet_input_new.py ├── imagenet_input_original.py └── mnist_input.py ├── eval.py ├── learning ├── __init__.py ├── __pycache__ │ ├── __init__.cpython-36.pyc │ ├── __init__.cpython-37.pyc │ ├── convnet_cifar.cpython-37.pyc │ ├── eval_within_train.cpython-36.pyc │ ├── eval_within_train.cpython-37.pyc │ ├── model_cifar10_res101.cpython-37.pyc │ ├── model_cifar10_resnet.cpython-37.pyc │ ├── model_cifar_vgg.cpython-37.pyc │ ├── model_decoder.cpython-37.pyc │ ├── model_drebin.cpython-36.pyc │ ├── model_drebin.cpython-37.pyc │ ├── model_imagenet_res20.cpython-37.pyc │ ├── model_imagenet_res50.cpython-36.pyc │ ├── model_imagenet_res50.cpython-37.pyc │ ├── model_imagenet_res50_v2s.cpython-37.pyc │ ├── model_imagenet_wrn.cpython-36.pyc │ ├── model_imagenet_wrn.cpython-37.pyc │ ├── model_imagenet_wrn_noBN.cpython-36.pyc │ ├── model_imagenet_wrn_small.cpython-36.pyc │ ├── model_imagenet_wrn_small.cpython-37.pyc │ ├── model_mnist.cpython-36.pyc │ ├── model_mnist.cpython-37.pyc │ ├── model_mnist_large.cpython-36.pyc │ ├── model_mnist_large.cpython-37.pyc │ ├── model_mnist_mlp.cpython-37.pyc │ ├── model_vanilla.cpython-36.pyc │ └── model_vanilla.cpython-37.pyc ├── eval_within_train.py ├── helper │ ├── ops.py │ └── utils.py ├── model_decoder.py ├── model_imagenet_res50.py ├── model_mnist.py ├── model_mnist_large.py ├── model_mnist_mlp.py └── model_vanilla.py ├── pgd_attack.py ├── pgd_attack_GPU.py ├── poster.pdf ├── requirements.txt ├── tSNE.py ├── tfboard.png ├── train_at_madry.py ├── train_natural.py ├── train_update_fast_triplet.py ├── utils.py └── utils_folder ├── __init__.py ├── __pycache__ ├── __init__.cpython-36.pyc ├── __init__.cpython-37.pyc ├── save_drebin.cpython-36.pyc └── save_drebin.cpython-37.pyc ├── fetch_model.py ├── multi_gpus.py ├── rename_checkpoint.py ├── save_drebin.py ├── save_imagenet.py └── save_mnist.py /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/README.md -------------------------------------------------------------------------------- /config_cifar.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/config_cifar.json -------------------------------------------------------------------------------- /config_imagenet.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/config_imagenet.json -------------------------------------------------------------------------------- /config_mnist.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/config_mnist.json -------------------------------------------------------------------------------- /dataloader/__init__.py: -------------------------------------------------------------------------------- 1 | # mao fu -------------------------------------------------------------------------------- /dataloader/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/dataloader/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /dataloader/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/dataloader/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /dataloader/__pycache__/cifar10_input.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/dataloader/__pycache__/cifar10_input.cpython-36.pyc -------------------------------------------------------------------------------- /dataloader/__pycache__/cifar10_input.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/dataloader/__pycache__/cifar10_input.cpython-37.pyc -------------------------------------------------------------------------------- /dataloader/__pycache__/imagenet_input_new.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/dataloader/__pycache__/imagenet_input_new.cpython-36.pyc -------------------------------------------------------------------------------- /dataloader/__pycache__/imagenet_input_new.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/dataloader/__pycache__/imagenet_input_new.cpython-37.pyc -------------------------------------------------------------------------------- /dataloader/__pycache__/mnist_input.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/dataloader/__pycache__/mnist_input.cpython-36.pyc -------------------------------------------------------------------------------- /dataloader/__pycache__/mnist_input.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/dataloader/__pycache__/mnist_input.cpython-37.pyc -------------------------------------------------------------------------------- /dataloader/cifar10_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/dataloader/cifar10_input.py -------------------------------------------------------------------------------- /dataloader/imagenet_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/dataloader/imagenet_input.py -------------------------------------------------------------------------------- /dataloader/imagenet_input_new.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/dataloader/imagenet_input_new.py -------------------------------------------------------------------------------- /dataloader/imagenet_input_original.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/dataloader/imagenet_input_original.py -------------------------------------------------------------------------------- /dataloader/mnist_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/dataloader/mnist_input.py -------------------------------------------------------------------------------- /eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/eval.py -------------------------------------------------------------------------------- /learning/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /learning/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /learning/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /learning/__pycache__/convnet_cifar.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/convnet_cifar.cpython-37.pyc -------------------------------------------------------------------------------- /learning/__pycache__/eval_within_train.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/eval_within_train.cpython-36.pyc -------------------------------------------------------------------------------- /learning/__pycache__/eval_within_train.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/eval_within_train.cpython-37.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_cifar10_res101.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_cifar10_res101.cpython-37.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_cifar10_resnet.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_cifar10_resnet.cpython-37.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_cifar_vgg.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_cifar_vgg.cpython-37.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_decoder.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_decoder.cpython-37.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_drebin.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_drebin.cpython-36.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_drebin.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_drebin.cpython-37.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_imagenet_res20.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_imagenet_res20.cpython-37.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_imagenet_res50.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_imagenet_res50.cpython-36.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_imagenet_res50.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_imagenet_res50.cpython-37.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_imagenet_res50_v2s.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_imagenet_res50_v2s.cpython-37.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_imagenet_wrn.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_imagenet_wrn.cpython-36.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_imagenet_wrn.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_imagenet_wrn.cpython-37.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_imagenet_wrn_noBN.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_imagenet_wrn_noBN.cpython-36.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_imagenet_wrn_small.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_imagenet_wrn_small.cpython-36.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_imagenet_wrn_small.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_imagenet_wrn_small.cpython-37.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_mnist.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_mnist.cpython-36.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_mnist.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_mnist.cpython-37.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_mnist_large.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_mnist_large.cpython-36.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_mnist_large.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_mnist_large.cpython-37.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_mnist_mlp.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_mnist_mlp.cpython-37.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_vanilla.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_vanilla.cpython-36.pyc -------------------------------------------------------------------------------- /learning/__pycache__/model_vanilla.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/__pycache__/model_vanilla.cpython-37.pyc -------------------------------------------------------------------------------- /learning/eval_within_train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/eval_within_train.py -------------------------------------------------------------------------------- /learning/helper/ops.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/helper/ops.py -------------------------------------------------------------------------------- /learning/helper/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/helper/utils.py -------------------------------------------------------------------------------- /learning/model_decoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/model_decoder.py -------------------------------------------------------------------------------- /learning/model_imagenet_res50.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/model_imagenet_res50.py -------------------------------------------------------------------------------- /learning/model_mnist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/model_mnist.py -------------------------------------------------------------------------------- /learning/model_mnist_large.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/model_mnist_large.py -------------------------------------------------------------------------------- /learning/model_mnist_mlp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/model_mnist_mlp.py -------------------------------------------------------------------------------- /learning/model_vanilla.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/learning/model_vanilla.py -------------------------------------------------------------------------------- /pgd_attack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/pgd_attack.py -------------------------------------------------------------------------------- /pgd_attack_GPU.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/pgd_attack_GPU.py -------------------------------------------------------------------------------- /poster.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/poster.pdf -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | matplotlib 2 | numpy 3 | tensorflow-gpu 4 | -------------------------------------------------------------------------------- /tSNE.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/tSNE.py -------------------------------------------------------------------------------- /tfboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/tfboard.png -------------------------------------------------------------------------------- /train_at_madry.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/train_at_madry.py -------------------------------------------------------------------------------- /train_natural.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/train_natural.py -------------------------------------------------------------------------------- /train_update_fast_triplet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/train_update_fast_triplet.py -------------------------------------------------------------------------------- /utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/utils.py -------------------------------------------------------------------------------- /utils_folder/__init__.py: -------------------------------------------------------------------------------- 1 | #mao -------------------------------------------------------------------------------- /utils_folder/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/utils_folder/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /utils_folder/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/utils_folder/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /utils_folder/__pycache__/save_drebin.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/utils_folder/__pycache__/save_drebin.cpython-36.pyc -------------------------------------------------------------------------------- /utils_folder/__pycache__/save_drebin.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/utils_folder/__pycache__/save_drebin.cpython-37.pyc -------------------------------------------------------------------------------- /utils_folder/fetch_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/utils_folder/fetch_model.py -------------------------------------------------------------------------------- /utils_folder/multi_gpus.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/utils_folder/multi_gpus.py -------------------------------------------------------------------------------- /utils_folder/rename_checkpoint.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/utils_folder/rename_checkpoint.py -------------------------------------------------------------------------------- /utils_folder/save_drebin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/utils_folder/save_drebin.py -------------------------------------------------------------------------------- /utils_folder/save_imagenet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/utils_folder/save_imagenet.py -------------------------------------------------------------------------------- /utils_folder/save_mnist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/columbia/Metric_Learning_Adversarial_Robustness/HEAD/utils_folder/save_mnist.py --------------------------------------------------------------------------------