【发布时间】:2018-08-21 13:48:50
【问题描述】:
我正在构建谷歌检测 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'
我确实有 proto 和 python
input_reader_pb2
文件。如果有人真的帮助我并且不将我重定向到其他线程,我会非常高兴。
【问题讨论】:
-
一般提示:如果您的错误是“ImportError”-> 谷歌它。因为 stackoverflow 上的人通常无法重现这种错误,除非他们的库安装也损坏(并且以相同的方式损坏),因此这是浪费时间......
标签: python tensorflow protocol-buffers