How to do adversarial test in pytorch lightning? #7766
Replies: 2 comments 4 replies
-
Hi, what exactly do you mean by "adversarial test"? |
Beta Was this translation helpful? Give feedback.
-
For example, training and test definition
model definition
adv_images, _ = self.pgd_attack(images, labels) \ is used to generate the adversarial images, however, it shows I guess that it was caused by test or eval model( with no_grad setting for pytorch). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Can we transfer a parameter or define a hook to test loop?
Beta Was this translation helpful? Give feedback.
All reactions