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' #24

Open
hkarakose opened this issue Feb 25, 2020 · 1 comment
Open

Cannot import name 'string_int_label_map_pb2' #24

hkarakose opened this issue Feb 25, 2020 · 1 comment

Comments

@hkarakose
Copy link

I am trying to run id_card_detection_image.py program. I receive following error. How can I fix this?

WARNING: Logging before flag parsing goes to stderr.
W0225 22:12:39.109291 4549164480 __init__.py:329] Limited tf.compat.v2.summary API due to missing TensorBoard installation.
Traceback (most recent call last):
  File "/Users/halil/Projects/id-card-detector/id_card_detection_image.py", line 15, in <module>
    from utils import label_map_util
  File "/Users/halil/Projects/id-card-detector/utils/label_map_util.py", line 21, in <module>
    from object_detection.protos import string_int_label_map_pb2
ImportError: cannot import name 'string_int_label_map_pb2'
@yildirimege
Copy link

You need tensorflow object detection for this.

pip install tensorflow-object-detection-api

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