ModuleNotFoundError:没有名为“ object_detection.core”的模块;在对象检测API中

时间:2019-08-24 10:05:07

标签: python tensorflow object-detection-api

当我尝试运行此语句时 from utils import label_map_util我收到以下错误,我按照对象检测安装文档中的所有步骤进行操作,仍然收到此错误。

  File "object_detection/object_detection.py", line 19, in <module>
    from utils import label_map_util
  File "/Users/ramanandsirvi/Documents/tensorflow/models/research/object_detection/utils/label_map_util.py", line 26, in <module>
    from object_detection.protos import string_int_label_map_pb2
  File "/Users/ramanandsirvi/Documents/tensorflow/models/research/object_detection/object_detection.py", line 21, in <module>
    from utils import visualization_utils as vis_util
  File "/Users/ramanandsirvi/Documents/tensorflow/models/research/object_detection/utils/visualization_utils.py", line 41, in <module>
    from object_detection.core import standard_fields as fields
ModuleNotFoundError: No module named 'object_detection.core'; 'object_detection' is not a package```

0 个答案:

没有答案