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
Sorry to bother you again.
When I run your white-box attack code for LLaVA, the gradient is None. The specific problem is:
adv_noise.data = (adv_noise.data - alpha * adv_noise.grad.detach().sign()).clamp(0, 1)
AttributeError: 'NoneType' object has no attribute 'detach'. Can you give me some help?
The text was updated successfully, but these errors were encountered:
Sorry to bother you again.
When I run your white-box attack code for LLaVA, the gradient is None. The specific problem is:
adv_noise.data = (adv_noise.data - alpha * adv_noise.grad.detach().sign()).clamp(0, 1)
AttributeError: 'NoneType' object has no attribute 'detach'. Can you give me some help?
The text was updated successfully, but these errors were encountered: