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

bug fix: y_test[img, 0] to y_test[img_id, 0] #25

Closed jaewoosong closed 3 years ago

jaewoosong commented 3 years ago

I guess y_test[img, 0] in attack_all() is a buggy line because img is not a valid variable in attack_all(). I guess the intended line was y_test[img_id, 0]?

Hyperparticle commented 3 years ago

Thanks for catching and fixing this!