Windows上的Tensorflow对象检测API错误

时间:2018-03-02 19:36:03

标签: python tensorflow object-detection-api

我已完成安装并安装了所有依赖项并完成了所有步骤。但是当我尝试运行object_detection_tutorial时,我收到以下错误:

    TypeError                                 Traceback (most recent call last)
<ipython-input-3-a66a6238863e> in <module>()
      3 from utils import visualization_utils as vis_util
      4 import utils
----> 5 from utils import label_map_util

F:\models-master\models-master\research\object_detection\utils\label_map_util.py in <module>()
     20 import tensorflow as tf
     21 from google.protobuf import text_format
---> 22 from object_detection.protos import string_int_label_map_pb2
     23 
     24 

F:\models-master\models-master\research\object_detection\protos\string_int_label_map_pb2.py in <module>()
     39       message_type=None, enum_type=None, containing_type=None,
     40       is_extension=False, extension_scope=None,
---> 41       options=None, file=DESCRIPTOR),
     42     _descriptor.FieldDescriptor(
     43       name='id', full_name='object_detection.protos.StringIntLabelMapItem.id', index=1,

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

运行此行后出现上述错误:

from utils import label_map_util

0 个答案:

没有答案