-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Attacks #85
Comments
Hi @santosh-b, yes there definitely is, this is a common use case. For FGSM specifically, you don't need to use any custom code, you can just use an l-infinity attack with 1 step, and set step size equal to epsilon. If you need something more complicated like a new kind of projection or something, you will just need to subclass the generic AttackerStep class ( robustness/robustness/attack_steps.py Line 15 in 2dabf3b
UnconstrainedStep and RandomStep subclasses for examples of how to do this.
Hope this helps! |
Is there any way to train with my own custom attacks using the library, such as FGSM?
The text was updated successfully, but these errors were encountered: