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
It's a really nice work that reminds the adversarial vulnerability of TTA.
I want to ask for the source code of indiscriminate attack. You have provided a reply for this in another issues, which changes the loss function in generate_attacks function to the following.
Nevertheless, I find that this loss cannot provide gradients for adv when I pass the original ViT into the generate_attacks function (since adv modify out[-source:], i.e., the latter inputs). Meanwhile, when I pass the Tented model into the generate_attacks function, RuntimeError occurs, "Trying to backward through the graph a second time, but the saved intermediate results have already been freed. Specify retain_graph=True when calling .backward() or autograd.grad() the first time."
Could you provide more explanations on how to conduct indiscriminate attack? Or is the attack only available on BN models?
The text was updated successfully, but these errors were encountered:
It's a really nice work that reminds the adversarial vulnerability of TTA.
I want to ask for the source code of indiscriminate attack. You have provided a reply for this in another issues, which changes the loss function in generate_attacks function to the following.
Nevertheless, I find that this loss cannot provide gradients for adv when I pass the original ViT into the generate_attacks function (since adv modify out[-source:], i.e., the latter inputs). Meanwhile, when I pass the Tented model into the generate_attacks function, RuntimeError occurs, "Trying to backward through the graph a second time, but the saved intermediate results have already been freed. Specify retain_graph=True when calling .backward() or autograd.grad() the first time."
Could you provide more explanations on how to conduct indiscriminate attack? Or is the attack only available on BN models?
The text was updated successfully, but these errors were encountered: