导入错误:无法导入名称“input_reader_pb2”

2024-05-23 16:51:01 发布

您现在位置:Python中文网/ 问答频道 /正文

使用win10 64位

当我试图通过E:\projectx\model-master\models-master>python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/ssd_mobilenet_v1_pets.config来训练我的模型时

出现此错误

File "train.py", line 49, in from object_detection.builders import dataset_builder File "C:\Users\DELL\AppData\Local\Programs\Python\Python36\lib\site-packages\object_detection-0.1-py3.6.egg\object_detection\builders\dataset_builder.py", line 27, in from object_detection.data_decoders import tf_example_decoder File "C:\Users\DELL\AppData\Local\Programs\Python\Python36\lib\site-packages\object_detection-0.1-py3.6.egg\object_detection\data_decoders\tf_example_decoder.py", line 27, in from object_detection.protos import input_reader_pb2 ImportError: cannot import name 'input_reader_pb2'

我确实运行protoc 3.4protoc object_detection/protos/*.proto --python_out=. 但错误仍然存在 我检查了所有的东西,它应该是好的和工作,这是我疯了!!

请帮忙。。。。 谢谢


Tags: infrompyimportmasterconfigobject错误