AttributeError:module &#x27tensorflow.python.keras.backend&#x27 has no attribute &#x27get_graph&#x27

我在导这个from keras.preprocessing import image 这个包时报这个错误,原因是keras版本和tensorflow的版本不匹配,我的tf版本是1.12, 官方文档给出的版本信息是:TensorFlow 1.12.0 + Keras 2.2.4 on Python 3.6

tensorflow和keras版本信息可以在这里查看:https://docs.floydhub.com/guides/environments/

猜你喜欢

转载自blog.csdn.net/weixin_43868576/article/details/106649408