-
Notifications
You must be signed in to change notification settings - Fork 5
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
How to retain original image size? #2
Comments
Hey, yes, there should be an option included in the code by calling a script using the option Best, |
@LukasStruppek That option is not included in adv1_collision_attack.py file |
Oh, I see. We only implemented this option for Best, |
I added it like exactly you said but the resulting image kinda gives an opacity over top of image https://gist.github.com/artyres1/6d0516d2ebc916c8ad84a742679f7534 This is the code..I use Mac M1 MPS engine..instead cuda.. |
What exactly do you mean by "an opacity over top of image"? You should make sure that the image is correctly saved in the end + that the updates are also correctly applied to the correct image tensor. Maybe check which tensor is optimized by the optimizer and use a debugger for localizing the problem. I currently do not have the capacity to implement this functionality into our code, I am sorry. |
@LukasStruppek is there any option to retain the original image size because when I run the attacks, the result is seems to be a resized image?!?
The text was updated successfully, but these errors were encountered: