Skip to content

stjordanis/fast_is_better_than_free_MNIST

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fast_is_better_than_free_MNIST

To train, run

python train_mnist.py --fname models/fgsm.pth

which runs FGSM training with the default parameters. To run the evaluation with default parameters (50 iterations with step size 0.01 and 10 random restarts), run

python evaluate_mnist.py --fname models/fgsm.pth

To run PGD adversarial training with the same parameters as those used here, run

python train_mnist.py --fname models/pgd_madry.pth --attack pgd --alpha 0.01 --lr-type flat --lr-max 0.0001 --epochs 100 --batch-size 50

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%