bstriner / keras-adversarial

Keras Generative Adversarial Networks
MIT License
867 stars 231 forks source link

ModuleNotFoundError: No module named 'tensorflow.contrib' #68

Open zoldaten opened 4 years ago

zoldaten commented 4 years ago

Using TensorFlow backend. 2019-12-10 18:04:25.268377: I tensorflow/stream_executor/platform/default/dso_lo ader.cc:44] Successfully opened dynamic library cudart64_101.dll Traceback (most recent call last): File "GAN-fake-CIFAR-10.py", line 20, in from keras_adversarial import AdversarialModel, simple_gan, gan_targets File "C:\python3\lib\site-packages\keras_adversarial-0.0.3-py3.6.egg\keras_adv ersarial__init.py", line 1, in File "C:\python3\lib\site-packages\keras_adversarial-0.0.3-py3.6.egg\keras_adv ersarial\adversarial_model.py", line 8, in File "C:\python3\lib\site-packages\keras_adversarial-0.0.3-py3.6.egg\keras_adv ersarial\adversarial_utils.py", line 7, in File "C:\python3\lib\site-packages\keras_adversarial-0.0.3-py3.6.egg\keras_adv ersarial\backend\init__.py", line 4, in File "C:\python3\lib\site-packages\keras_adversarial-0.0.3-py3.6.egg\keras_adv ersarial\backend\tensorflow_backend.py", line 3, in ModuleNotFoundError: No module named 'tensorflow.contrib'

I know in Tf==2.0.0 there`s no more 'tensorflow.contrib' ... but how to deal with it without downgrade version of Tf ?

Gaoee commented 4 years ago

Maybe you can try tensorflow==1.13.1 install. It works for me.