mask rcnn:module ‘keras.engine‘ has no attribute ‘Layer‘
报错原因,各库关系版本关系不对应步骤1:pip3 uninstall keras -ypip3 uninstall keras-nightly -ypip3 uninstall keras-Preprocessing -ypip3 uninstall keras-vis -ypip3 uninstall tensorflow -ypip3 uninstall h5py -y步骤2:pip inst
·
报错原因,各库关系版本关系不对应
步骤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
更多推荐



所有评论(0)