成功解决AttributeError: module 'tensorflow.python.keras' has no attribute 'Model'
生活随笔
收集整理的這篇文章主要介紹了
成功解决AttributeError: module 'tensorflow.python.keras' has no attribute 'Model'
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
成功解決AttributeError: module 'tensorflow.python.keras' has no attribute 'Model'
?
目錄
解決問題
解決方法
?
?
?
?
解決問題
File "object_detection/builders/model_builder_test.py", line 24, in <module>from object_detection.builders import model_builderFile "F:\File_Python\Python_example\models-master\research\object_detection\builders\model_builder.py", line 22, in <module>from object_detection.builders import box_predictor_builderFile "F:\File_Python\Python_example\models-master\research\object_detection\builders\box_predictor_builder.py", line 21, in <module>from object_detection.predictors import convolutional_box_predictorFile "F:\File_Python\Python_example\models-master\research\object_detection\predictors\convolutional_box_predictor.py", line 19, in <module>from object_detection.core import box_predictorFile "F:\File_Python\Python_example\models-master\research\object_detection\core\box_predictor.py", line 137, in <module>class KerasBoxPredictor(tf.keras.Model): AttributeError: module 'tensorflow.python.keras' has no attribute 'Model'?
?
?
解決方法
升級tensorflow到最新版本即可!
pip install -U tensorflow?
?
?
總結
以上是生活随笔為你收集整理的成功解决AttributeError: module 'tensorflow.python.keras' has no attribute 'Model'的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 成功解决TypeError: __ini
- 下一篇: 成功解决from nets import