AttributeError: module 'object_detection.protos.faster_rcnn_pb2' has no attribute 'AttentionPosition' - upon resuming training

AttributeError: module 'object_detection.protos.faster_rcnn_pb2' has no attribute 'AttentionPosition' - upon resuming training

我正在学习本教程 https://github.com/EdjeElectronics/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10

系统 - Windows10,Anaconda Prompt,Python3.6,tensorflow 1.15.0

初始设置和训练成功。暂停训练并恢复后,我从标题中收到错误消息。任何帮助将不胜感激。

我意识到每次从 anaconda 提示重新进入环境时我都应该重置 python 路径。这解决了问题:

设置 PYTHONPATH=C:\tensorflow1\models;C:\tensorflow1\models\research;C:\tensorflow1\models\research\slim