天天看點

mark 一個keras問題mark 一個keras問題問題來源

mark 一個keras問題

今天發現最新版keras2.2并不與tensorflow1.11相容是以有時候會有一些很奇怪的問題比如

AttributeError: ‘Node’ object has no attribute ‘output_masks’

問題來源

使用預訓練模型VGG出現報錯

AttributeError: ‘Node’ object has no attribute ‘output_masks’

keras 2.2.2 has requirement keras-applications1.0.4, but you’ll have keras-applications 1.0.6 which is incompatible.

keras 2.2.2 has requirement keras-preprocessing1.0.2, but you’ll have keras-preprocessing 1.0.5 which is incompatible.

給tensorflow版本降級到1.9即可

繼續閱讀