mask rcnn:module ‘keras.engine‘ has no attribute ‘Layer‘

mask rcnn:module ‘keras.engine‘ has no attribute ‘Layer‘,第1张

mask rcnn:module ‘keras.engine‘ has no attribute ‘Layer‘

报错原因,各库关系版本关系不对应
步骤1:

pip3 uninstall keras -y
pip3 uninstall keras-nightly -y
pip3 uninstall keras-Preprocessing -y
pip3 uninstall keras-vis -y
pip3 uninstall tensorflow -y
pip3 uninstall h5py -y

步骤2:

pip install tensorflow==1.13.1
pip install keras==2.0.8
pip install h5py==2.10.0

keras和tensorflow的版本对应关系
tf的一些依赖关系(python、gcc等):
更详细可参阅:tensorflow.google.cn

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5689478.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存