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.2k stars 209 forks source link

Not able to reproduce Google Collab notebook #27

Open martinehman opened 2 years ago

martinehman commented 2 years ago

It seems like imports are broken, which version of tensorflow/keras has been used?

ImportError: cannot import name 'Adam' from 'keras.optimizers'

in line from networks.pure_cnn import PureCnn

pEtienn commented 2 years ago

I have the same problem

pEtienn commented 2 years ago

Just found it, they used the version where Keras and Tensorflow were separated.

martinehman commented 2 years ago

Just found it, they used the version where Keras and Tensorflow were separated.

Thanks, I noticed that but I'm not sure which versions they have used. In requirements.txt versions are not set.

SuperCarryFu commented 2 years ago

What version do you use? Was it successful?

MQN-80 commented 1 year ago

What version do you use? Was it successful?

the tensorflow version is 1.15.0,and the keras version is 2.3.1,it can run successfully