Hyperparticle / one-pixel-attack-keras

Keras implementation of "One pixel attack for fooling deep neural networks" using differential evolution on Cifar10 and ImageNet
https://arxiv.org/abs/1710.08864
MIT License
1.22k stars 214 forks source link

How to display the picture after the attack? #22

Closed lvhuanhuan123 closed 3 years ago

lvhuanhuan123 commented 4 years ago

Hello, after running attack.py, the pkl file is saved. I would like to ask how to display the image after the attack? Attack is to perturb a single pixel. Has the value of other pixels in the image changed? Thank you and look forward to your reply.

TongSEU commented 3 years ago

Have you solved this problem? I also want to know how to display the attacked pictures. Thank you!

Hyperparticle commented 3 years ago

Sorry, I've been busy. The notebook/Colab should show you how to do this. More specifically, helper.py has a function called plot_image that you can use. The attack function in the notebook calls this helper function to display the attacked image.

Does this answer your question, or are you looking for something more specific?

michaelTJC96 commented 3 years ago

can I download the pictures too?