from utils import label_map_util Import Error: No module named utils

后端 未结 4 1453
轻奢々
轻奢々 2021-01-04 13:07

I am trying to run the object_detection.ipynb type program but it is a normal python program(.py). It is working very well but when running inside the ..m

4条回答
  •  無奈伤痛
    2021-01-04 13:25

    I have seen the same problem. that's because string_int_label_map_pb2.py file doesn't exist.

    1.you need to install protobuf.

    https://github.com/google/protobuf/releases
    
    1. cd your path to object_detection

      protoc object_detection/protos/string_int_label_map.proto --python_out=.

    you will find string_int_label_map_pb2.py file in 'object_detection\protos'

    1. that will be ok, if there is still a problem, you can add your object_detection folder to PYTHONPATH.

提交回复
热议问题