tensorflow-gpu 1.4.0版本
执行object_detection/legacy/train.py过程中报错如下:AttributeError: module 'tensorflow.python.keras' has no attribute 'Model'
(执行命令为:
python legacy/train.py --logtostderr --train_dir=training/ --pipeline_config_path=ssd_mobilenet_v1_pets.config
参考链接:https://tomoya92.github.io/2018/09/17/tensorflow-object-detection/
)
解决方法:
将tf.keras.Model改为tf.keras.models.Model
参考链接:https://stackoverflow.com/questions/51873651/attributeerror-module-tensorflow-python-keras-has-no-attribute-model
本博客所有文章除特别声明外,均采用 CC BY-SA 3.0协议 。转载请注明出处!