【问题标题】:ImportError while doing Custom Object Detection with Tensorflow version 1.14.0使用 Tensorflow 版本 1.14.0 进行自定义对象检测时出现 ImportError
【发布时间】:2020-11-11 06:24:52
【问题描述】:

我正在尝试使用 TensorFlow 检测对象,如 here 所述。

在训练部分运行此命令后

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

我收到以下错误:

ImportError: cannot import name 'center_net_pb2' from 'object_detection.protos' (E:\Projects\Tensorflow_10Nov20\models-master\research\object_detection\protos\__init__.py)

这里是相关代码

from object_detection.protos import center_net_pb2 as object__detection_dot_protos_dot_center__net__pb2

【问题讨论】:

    标签: python tensorflow opencv


    【解决方案1】:

    不知道您的 protoc 版本是什么,但尝试将其升级到至少 3.7.x 版本,这可能会解决问题。

    【讨论】:

    • 谢谢!好的,我会尝试@Digital_entity
    猜你喜欢
    • 2018-07-03
    • 1970-01-01
    • 1970-01-01
    • 2019-01-09
    • 1970-01-01
    • 1970-01-01
    • 2021-10-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多