-
Notifications
You must be signed in to change notification settings - Fork 6
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
Error occurs when using patches_universal #6
Comments
Hi, thanks for interest in our work! I think it's sufficient to modify Line 572 in 21d8759
If this solves your issue, I'll update the code too. Thanks for letting me know! |
I think it should be fine, for the universal attacks all queries should anyway be used for all points i.e. there's no early stopping. I'll update that as well, thanks! |
Hello,
The error
argument 'size' (position 1) must be tuple of ints, not Tensor
always occur at 60% progress of the funcitonattack_single_run()
when I tried to run the code with the following command:Where ../frogdata/ILSVRC2012_val is the path to the imagenet validation set.
The error reports is like:
I used the latest stable version of PyTorch at first. Then I tried to switch to PyTorch 1.8.0 and Python3.8.5 according to README.md in the repository, but that doesn't help, so I decided to post an issue here to seek for help.
Thank you for your fascinating work and any help given!
The text was updated successfully, but these errors were encountered: