-
Notifications
You must be signed in to change notification settings - Fork 74
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
ImportError: cannot import name 'string_int_label_map_pb2' from 'object_detection.protos' (..\object_detection\protos\__init__.py) #9
Comments
Download that .py file and put in protos folder
…On Tue, 26 May, 2020, 11:08 PM Sunny Kumar, ***@***.***> wrote:
`---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
in
11
12 # Import utilites
---> 13 from utils import label_map_util
14 from utils import visualization_utils as vis_util
15
~\Desktop\Mask
Detector\master\research\object_detection\utils\label_map_util.py in
25 import tensorflow as tf
26 from google.protobuf import text_format
---> 27 from object_detection.protos import string_int_label_map_pb2
28
29
ImportError: cannot import name 'string_int_label_map_pb2' from
'object_detection.protos' (..\object_detection\protos_*init*_.py)
`
I have tensorflow version '1.15.0'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#9>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKA3TJALPW7EXDKQ7GIHQWLRTP473ANCNFSM4NKYXHBQ>
.
|
Now this error.. `~\Desktop\Mask Detector\master\research\object_detection\protos\string_int_label_map_pb2.py in AttributeError: module 'google.protobuf.descriptor' has no attribute '_internal_create_key'` |
Can you please share your protoc and protobuf version that you are using. |
You need to put this file in protos folder
https://github.com/datitran/object_detector_app/blob/master/object_detection/protos/string_int_label_map_pb2.py
…On Wed, May 27, 2020 at 1:03 PM Sunny Kumar ***@***.***> wrote:
Can you please share your protoc and protobuf version that you are using.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKA3TJCTQWU43DYSL545DM3RTS63RANCNFSM4NKYXHBQ>
.
|
`---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
in
11
12 # Import utilites
---> 13 from utils import label_map_util
14 from utils import visualization_utils as vis_util
15
~\Desktop\Mask Detector\master\research\object_detection\utils\label_map_util.py in
25 import tensorflow as tf
26 from google.protobuf import text_format
---> 27 from object_detection.protos import string_int_label_map_pb2
28
29
ImportError: cannot import name 'string_int_label_map_pb2' from 'object_detection.protos' (..\object_detection\protos_init_.py)
`
I have tensorflow version '1.15.0'
The text was updated successfully, but these errors were encountered: