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

Unable to load adversarial image #20

Open
Wrathar opened this issue Sep 16, 2020 · 1 comment
Open

Unable to load adversarial image #20

Wrathar opened this issue Sep 16, 2020 · 1 comment

Comments

@Wrathar
Copy link

Wrathar commented Sep 16, 2020

Hi, thank you for providing your open source code for the community. I have tried replicating the basic CIFAR-10 example by running eval.py from the examples folder but I was unable to load a clear picture of the adversarial images. Could I trouble you to take a look at my code and advise me on how I can load it properly? Thank you for your help!

image

@fra31
Copy link
Owner

fra31 commented Sep 16, 2020

Hi,

thanks for the interest in our work! Your code looks fine to me, just I wouldn't use any interpolation when plotting the images (i.e. interpolation='none').
If you mean that the images are low resolution, that's because the dataset itself has images of 32x32 pixels. Maybe visualizing side by side the original and adversarial examples helps to highlight the difference (note that in case the image is initially misclassified the results file contains just a copy of it).

Hope this answers your questions (otherwise let me know)!

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