Skip to content
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

some question about the white box attack #10

Open
yuese1234 opened this issue Oct 14, 2024 · 0 comments
Open

some question about the white box attack #10

yuese1234 opened this issue Oct 14, 2024 · 0 comments
Assignees

Comments

@yuese1234
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants