You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 (
), and then feed in your subclass as the constraint instead of "2" or "inf." You can look at the UnconstrainedStep and RandomStep subclasses for examples of how to do this.
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: