├── GAIR.py ├── GAIRAT.py ├── GAIR_FAT.py ├── GAIR_RST ├── attack_cw.py ├── attack_evaluation.py ├── attack_pgd.py ├── autoattack │ ├── __init__.py │ ├── autoattack.py │ ├── autopgd_pt.py │ ├── autopgd_tf.py │ ├── examples │ │ ├── eval.py │ │ ├── eval_tf1.py │ │ ├── eval_tf2.py │ │ ├── resnet.py │ │ ├── run_eval.sh │ │ ├── wideresnet.py │ │ └── wrn_madry.py │ ├── fab_pt.py │ ├── fab_tf.py │ ├── other_utils.py │ ├── square.py │ ├── utils_tf.py │ └── utils_tf2.py ├── autoaugment.py ├── cutout.py ├── datasets.py ├── losses.py ├── models │ ├── __init__.py │ ├── cifar_resnet.py │ ├── resnet.py │ ├── shake_shake.py │ ├── shake_shake_function.py │ └── wideresnet.py ├── robust_self_training_GAIR.py ├── run_evaluation.sh ├── run_training.sh └── utils.py ├── README.md ├── attack_cw.py ├── attack_generator.py ├── attack_pgd.py ├── datasets.py ├── earlystop.py ├── eval_PGD_plus.py ├── images ├── GAIRAT_learning_obj.png ├── diff_net_error_white.png ├── diff_net_error_with_ST_white.png ├── eps_error_white.png ├── motivation.png └── pca01.png ├── models ├── __init__.py ├── preact_resnet.py ├── resnet.py ├── small_cnn.py ├── wide_resnet.py └── wrn_madry.py ├── utils ├── __init__.py ├── eval.py ├── logger.py └── misc.py └── utils_eval.py /GAIR.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR.py -------------------------------------------------------------------------------- /GAIRAT.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIRAT.py -------------------------------------------------------------------------------- /GAIR_FAT.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_FAT.py -------------------------------------------------------------------------------- /GAIR_RST/attack_cw.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/attack_cw.py -------------------------------------------------------------------------------- /GAIR_RST/attack_evaluation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/attack_evaluation.py -------------------------------------------------------------------------------- /GAIR_RST/attack_pgd.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/attack_pgd.py -------------------------------------------------------------------------------- /GAIR_RST/autoattack/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/autoattack/__init__.py -------------------------------------------------------------------------------- /GAIR_RST/autoattack/autoattack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/autoattack/autoattack.py -------------------------------------------------------------------------------- /GAIR_RST/autoattack/autopgd_pt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/autoattack/autopgd_pt.py -------------------------------------------------------------------------------- /GAIR_RST/autoattack/autopgd_tf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/autoattack/autopgd_tf.py -------------------------------------------------------------------------------- /GAIR_RST/autoattack/examples/eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/autoattack/examples/eval.py -------------------------------------------------------------------------------- /GAIR_RST/autoattack/examples/eval_tf1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/autoattack/examples/eval_tf1.py -------------------------------------------------------------------------------- /GAIR_RST/autoattack/examples/eval_tf2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/autoattack/examples/eval_tf2.py -------------------------------------------------------------------------------- /GAIR_RST/autoattack/examples/resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/autoattack/examples/resnet.py -------------------------------------------------------------------------------- /GAIR_RST/autoattack/examples/run_eval.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/autoattack/examples/run_eval.sh -------------------------------------------------------------------------------- /GAIR_RST/autoattack/examples/wideresnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/autoattack/examples/wideresnet.py -------------------------------------------------------------------------------- /GAIR_RST/autoattack/examples/wrn_madry.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/autoattack/examples/wrn_madry.py -------------------------------------------------------------------------------- /GAIR_RST/autoattack/fab_pt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/autoattack/fab_pt.py -------------------------------------------------------------------------------- /GAIR_RST/autoattack/fab_tf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/autoattack/fab_tf.py -------------------------------------------------------------------------------- /GAIR_RST/autoattack/other_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/autoattack/other_utils.py -------------------------------------------------------------------------------- /GAIR_RST/autoattack/square.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/autoattack/square.py -------------------------------------------------------------------------------- /GAIR_RST/autoattack/utils_tf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/autoattack/utils_tf.py -------------------------------------------------------------------------------- /GAIR_RST/autoattack/utils_tf2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/autoattack/utils_tf2.py -------------------------------------------------------------------------------- /GAIR_RST/autoaugment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/autoaugment.py -------------------------------------------------------------------------------- /GAIR_RST/cutout.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/cutout.py -------------------------------------------------------------------------------- /GAIR_RST/datasets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/datasets.py -------------------------------------------------------------------------------- /GAIR_RST/losses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/losses.py -------------------------------------------------------------------------------- /GAIR_RST/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/models/__init__.py -------------------------------------------------------------------------------- /GAIR_RST/models/cifar_resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/models/cifar_resnet.py -------------------------------------------------------------------------------- /GAIR_RST/models/resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/models/resnet.py -------------------------------------------------------------------------------- /GAIR_RST/models/shake_shake.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/models/shake_shake.py -------------------------------------------------------------------------------- /GAIR_RST/models/shake_shake_function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/models/shake_shake_function.py -------------------------------------------------------------------------------- /GAIR_RST/models/wideresnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/models/wideresnet.py -------------------------------------------------------------------------------- /GAIR_RST/robust_self_training_GAIR.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/robust_self_training_GAIR.py -------------------------------------------------------------------------------- /GAIR_RST/run_evaluation.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/run_evaluation.sh -------------------------------------------------------------------------------- /GAIR_RST/run_training.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/run_training.sh -------------------------------------------------------------------------------- /GAIR_RST/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/GAIR_RST/utils.py -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/README.md -------------------------------------------------------------------------------- /attack_cw.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/attack_cw.py -------------------------------------------------------------------------------- /attack_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/attack_generator.py -------------------------------------------------------------------------------- /attack_pgd.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/attack_pgd.py -------------------------------------------------------------------------------- /datasets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/datasets.py -------------------------------------------------------------------------------- /earlystop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/earlystop.py -------------------------------------------------------------------------------- /eval_PGD_plus.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/eval_PGD_plus.py -------------------------------------------------------------------------------- /images/GAIRAT_learning_obj.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/images/GAIRAT_learning_obj.png -------------------------------------------------------------------------------- /images/diff_net_error_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/images/diff_net_error_white.png -------------------------------------------------------------------------------- /images/diff_net_error_with_ST_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/images/diff_net_error_with_ST_white.png -------------------------------------------------------------------------------- /images/eps_error_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/images/eps_error_white.png -------------------------------------------------------------------------------- /images/motivation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/images/motivation.png -------------------------------------------------------------------------------- /images/pca01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/images/pca01.png -------------------------------------------------------------------------------- /models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/models/__init__.py -------------------------------------------------------------------------------- /models/preact_resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/models/preact_resnet.py -------------------------------------------------------------------------------- /models/resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/models/resnet.py -------------------------------------------------------------------------------- /models/small_cnn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/models/small_cnn.py -------------------------------------------------------------------------------- /models/wide_resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/models/wide_resnet.py -------------------------------------------------------------------------------- /models/wrn_madry.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/models/wrn_madry.py -------------------------------------------------------------------------------- /utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/utils/__init__.py -------------------------------------------------------------------------------- /utils/eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/utils/eval.py -------------------------------------------------------------------------------- /utils/logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/utils/logger.py -------------------------------------------------------------------------------- /utils/misc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/utils/misc.py -------------------------------------------------------------------------------- /utils_eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zjfheart/Geometry-aware-Instance-reweighted-Adversarial-Training/HEAD/utils_eval.py --------------------------------------------------------------------------------