我正在构建Google Detection API模型,并且在最后一步-培训。 运行这段代码后
python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_resnet_v2_atrous_coco.config
我收到以下错误
Traceback (most recent call last):
File "train.py", line 49, in <module>
from object_detection.builders import dataset_builder
File "C:\Program Files\Python36\lib\site-packages\object_detection-0.1-py3.6.egg\object_detection\builders\dataset_builder.py", line 27, in <module>
from object_detection.data_decoders import tf_example_decoder
File "C:\Program Files\Python36\lib\site-packages\object_detection-0.1-py3.6.egg\object_detection\data_decoders\tf_example_decoder.py", line 27, in <module>
from object_detection.protos import input_reader_pb2
ImportError: cannot import name 'input_reader_pb2'
我确实拥有原型和python
input_reader_pb2
个文件。如果有人真的帮助我并且不将我重定向到其他线程,我将非常高兴。
答案 0 :(得分:0)
很抱歉发布链接。。但这是来自tensorflow本身。
请找到此链接:https://github.com/tensorflow/models/issues/3933
它说您必须执行以下步骤:
cd models/research
protoc object_detection/protos/*.proto --python_out=.
也可以在那里进行完整的对话。