auto-attack icon indicating copy to clipboard operation
auto-attack copied to clipboard

Unable to load adversarial image

Open Darylnn opened this issue 5 years ago • 1 comments

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

Darylnn avatar Sep 16 '20 03:09 Darylnn

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)!

fra31 avatar Sep 16 '20 11:09 fra31