Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot import name 'string_int_label_map_pb2' #4

Open
hackerghost93 opened this issue Dec 22, 2018 · 1 comment
Open

Cannot import name 'string_int_label_map_pb2' #4

hackerghost93 opened this issue Dec 22, 2018 · 1 comment

Comments

@hackerghost93
Copy link

When I try to run your project it seems i get this what is wrong with it?
By the way I can't find this file in object_detections.protos
Traceback (most recent call last): File "tf-models/research/object_detection/eval.py", line 56, in <module> from object_detection import evaluator File "/home/hackerghost/flowchat/faster-rcnn-graphics/tf-models/research/object_detection/evaluator.py", line 24, in <module> from object_detection import eval_util File "/home/hackerghost/flowchat/faster-rcnn-graphics/tf-models/research/object_detection/eval_util.py", line 27, in <module> from object_detection.utils import label_map_util File "/home/hackerghost/flowchat/faster-rcnn-graphics/tf-models/research/object_detection/utils/label_map_util.py", line 22, in <module> from object_detection.protos import string_int_label_map_pb2 ImportError: cannot import name 'string_int_label_map_pb2'

@soumitraghosh388
Copy link

Hi @hackerghost93 Please go through https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md which deals with the installation part.
More appropriately you need to execute this -

# From tensorflow/models/research/
protoc object_detection/protos/*.proto --python_out=.

It will create all protos files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants