├── LICENSE ├── README.md ├── adv_data ├── .gitkeep └── gray │ └── .gitkeep ├── baselineCNN ├── .gitkeep └── cnn │ ├── .gitkeep │ ├── cnn_cifar10.py │ ├── cnn_cifar10_gray.py │ ├── cnn_mnist.py │ ├── cnn_mnist_gray.py │ ├── cnn_svhn.py │ ├── cnn_svhn_gray.py │ ├── cnn_tiny.py │ └── cnn_tiny_gray.py ├── checkpoints └── .gitkeep ├── collect_results_from_csv.py ├── common ├── .gitkeep └── util.py ├── detect_dnr.py ├── detect_fs.py ├── detect_kd_bu.py ├── detect_lid.py ├── detect_magnet.py ├── detect_nic.py ├── detect_nss.py ├── detect_sfad.py ├── dnr ├── .gitkeep ├── dnr_cifar.py ├── dnr_mnist.py ├── dnr_svhn.py └── dnr_tiny.py ├── fs ├── .gitkeep ├── datasets │ ├── .gitkeep │ └── datasets_utils.py ├── detections │ ├── .gitkeep │ └── base.py ├── robustness │ ├── .gitkeep │ ├── __init__.py │ └── base.py └── utils │ ├── .gitkeep │ ├── median.py │ ├── output.py │ └── squeeze.py ├── generate_adv.py ├── kd_bu ├── .gitkeep └── detect │ ├── .gitkeep │ └── util.py ├── lid ├── .gitkeep └── util.py ├── magnet ├── .gitkeep ├── defensive_models.py ├── utils.py └── worker.py ├── nss ├── .gitkeep └── MSCN.py ├── results ├── dnr │ └── .gitkeep ├── fs │ └── .gitkeep ├── kd_bu │ └── .gitkeep ├── lid │ └── .gitkeep ├── magnet │ └── .gitkeep ├── nic │ └── .gitkeep ├── nss │ └── .gitkeep └── sfad │ └── .gitkeep ├── run_detectors.py ├── setup_paths.py ├── sfad ├── .gitkeep ├── sfad_cifar_a.py ├── sfad_cifar_b.py ├── sfad_mnist_a.py ├── sfad_mnist_b.py ├── sfad_svhn_a.py ├── sfad_svhn_b.py ├── sfad_tiny_a.py └── sfad_tiny_b.py └── train_cnn_base.py /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/README.md -------------------------------------------------------------------------------- /adv_data/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /adv_data/gray/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /baselineCNN/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /baselineCNN/cnn/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /baselineCNN/cnn/cnn_cifar10.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/baselineCNN/cnn/cnn_cifar10.py -------------------------------------------------------------------------------- /baselineCNN/cnn/cnn_cifar10_gray.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/baselineCNN/cnn/cnn_cifar10_gray.py -------------------------------------------------------------------------------- /baselineCNN/cnn/cnn_mnist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/baselineCNN/cnn/cnn_mnist.py -------------------------------------------------------------------------------- /baselineCNN/cnn/cnn_mnist_gray.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/baselineCNN/cnn/cnn_mnist_gray.py -------------------------------------------------------------------------------- /baselineCNN/cnn/cnn_svhn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/baselineCNN/cnn/cnn_svhn.py -------------------------------------------------------------------------------- /baselineCNN/cnn/cnn_svhn_gray.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/baselineCNN/cnn/cnn_svhn_gray.py -------------------------------------------------------------------------------- /baselineCNN/cnn/cnn_tiny.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/baselineCNN/cnn/cnn_tiny.py -------------------------------------------------------------------------------- /baselineCNN/cnn/cnn_tiny_gray.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/baselineCNN/cnn/cnn_tiny_gray.py -------------------------------------------------------------------------------- /checkpoints/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /collect_results_from_csv.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/collect_results_from_csv.py -------------------------------------------------------------------------------- /common/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /common/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/common/util.py -------------------------------------------------------------------------------- /detect_dnr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/detect_dnr.py -------------------------------------------------------------------------------- /detect_fs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/detect_fs.py -------------------------------------------------------------------------------- /detect_kd_bu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/detect_kd_bu.py -------------------------------------------------------------------------------- /detect_lid.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/detect_lid.py -------------------------------------------------------------------------------- /detect_magnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/detect_magnet.py -------------------------------------------------------------------------------- /detect_nic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/detect_nic.py -------------------------------------------------------------------------------- /detect_nss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/detect_nss.py -------------------------------------------------------------------------------- /detect_sfad.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/detect_sfad.py -------------------------------------------------------------------------------- /dnr/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /dnr/dnr_cifar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/dnr/dnr_cifar.py -------------------------------------------------------------------------------- /dnr/dnr_mnist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/dnr/dnr_mnist.py -------------------------------------------------------------------------------- /dnr/dnr_svhn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/dnr/dnr_svhn.py -------------------------------------------------------------------------------- /dnr/dnr_tiny.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/dnr/dnr_tiny.py -------------------------------------------------------------------------------- /fs/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /fs/datasets/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /fs/datasets/datasets_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/fs/datasets/datasets_utils.py -------------------------------------------------------------------------------- /fs/detections/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /fs/detections/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/fs/detections/base.py -------------------------------------------------------------------------------- /fs/robustness/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /fs/robustness/__init__.py: -------------------------------------------------------------------------------- 1 | from .base import evaluate_robustness -------------------------------------------------------------------------------- /fs/robustness/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/fs/robustness/base.py -------------------------------------------------------------------------------- /fs/utils/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /fs/utils/median.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/fs/utils/median.py -------------------------------------------------------------------------------- /fs/utils/output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/fs/utils/output.py -------------------------------------------------------------------------------- /fs/utils/squeeze.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/fs/utils/squeeze.py -------------------------------------------------------------------------------- /generate_adv.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/generate_adv.py -------------------------------------------------------------------------------- /kd_bu/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /kd_bu/detect/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /kd_bu/detect/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/kd_bu/detect/util.py -------------------------------------------------------------------------------- /lid/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /lid/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/lid/util.py -------------------------------------------------------------------------------- /magnet/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /magnet/defensive_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/magnet/defensive_models.py -------------------------------------------------------------------------------- /magnet/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/magnet/utils.py -------------------------------------------------------------------------------- /magnet/worker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/magnet/worker.py -------------------------------------------------------------------------------- /nss/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /nss/MSCN.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/nss/MSCN.py -------------------------------------------------------------------------------- /results/dnr/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /results/fs/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /results/kd_bu/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /results/lid/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /results/magnet/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /results/nic/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /results/nss/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /results/sfad/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /run_detectors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/run_detectors.py -------------------------------------------------------------------------------- /setup_paths.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/setup_paths.py -------------------------------------------------------------------------------- /sfad/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /sfad/sfad_cifar_a.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/sfad/sfad_cifar_a.py -------------------------------------------------------------------------------- /sfad/sfad_cifar_b.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/sfad/sfad_cifar_b.py -------------------------------------------------------------------------------- /sfad/sfad_mnist_a.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/sfad/sfad_mnist_a.py -------------------------------------------------------------------------------- /sfad/sfad_mnist_b.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/sfad/sfad_mnist_b.py -------------------------------------------------------------------------------- /sfad/sfad_svhn_a.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/sfad/sfad_svhn_a.py -------------------------------------------------------------------------------- /sfad/sfad_svhn_b.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/sfad/sfad_svhn_b.py -------------------------------------------------------------------------------- /sfad/sfad_tiny_a.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/sfad/sfad_tiny_a.py -------------------------------------------------------------------------------- /sfad/sfad_tiny_b.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/sfad/sfad_tiny_b.py -------------------------------------------------------------------------------- /train_cnn_base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aldahdooh/detectors_review/HEAD/train_cnn_base.py --------------------------------------------------------------------------------