wdevazelhes / ZO-AdaMM

Code for paper 'ZO-AdaMM: Zeroth-Order Adaptive MomentumMethod for Black-Box Optimization'

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ZOADAM

To download the inception model:

python3 setup_inception.py

To prepare the ImageNet dataset, download and unzip the following archive:

ImageNet Test Set

and put the imgs folder in ../imagesnetdata. This path can be changed in setup_inception.py.

To train cifar model: run

python3 train_model.py

Universal attack:

run

python3 universal.py 

You can change methods or any hyperparameter in args.

Single image attack on cifar:

run

python3 Main_exp1.py

Attack on imagenet for multiple images:

run

python3 imagenet_blackBox_attack2.py

About

Code for paper 'ZO-AdaMM: Zeroth-Order Adaptive MomentumMethod for Black-Box Optimization'


Languages

Language:Python 100.0%