0

我正在关注本教程:https : //pythonprogramming.net/introduction-use-tensorflow-object-detection-api-tutorial/ 对我自己的数据集进行对象检测并微调预训练模型。

当我运行这个命令时:

python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/ssd_mobilenet_v1_pets.config 

我收到此错误:

Traceback (most recent call last):

  File "train.py", line 51, in <module>

    from object_detection import trainer

  File "/Users/apple/Downloads/models/research/object_detection/trainer.py", line 27, in <module>

    from object_detection.builders import preprocessor_builder

  File "/Users/apple/Downloads/models/research/object_detection/builders/preprocessor_builder.py", line 21, in <module>

    from object_detection.protos import preprocessor_pb2

  File 
"/Users/apple/Downloads/models/research/object_detection/protos/preprocessor_pb2.py", line 71, in <module>

    options=None, file=DESCRIPTOR),

TypeError: __init__() got an unexpected keyword argument 'file'

删除这个论点并不能解决这个问题。

我正在使用 macosx 10.12.6 - 塞拉

有什么帮助吗?

4

0 回答 0