Skip to content

string_int_label_map_pb2 issue #1604

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

Closed
10183308 opened this issue Jun 19, 2017 · 12 comments
Closed

string_int_label_map_pb2 issue #1604

10183308 opened this issue Jun 19, 2017 · 12 comments

Comments

@10183308
Copy link

hello all,

when i run the create_pascal_tf_record.py,it shows that

from protos import string_int_label_map_pb2

ImportError: cannot import name string_int_label_map_pb2

i want to konw where is the string_int_label_map_pb2 ?

thank you very much

@danzelmo
Copy link

danzelmo commented Jun 19, 2017

I had the same issue. The protobuf libraries need to be compiled
protoc object_detection/protos/*.proto --python_out=.
you will have to install protoc first though. Look in the installation instructions for other things to do before running.

@10183308
Copy link
Author

thank you very much ,

but when I run the commond ,it shows anthoer worng,
hc@hc-PC:/media/media_share/linkfile/models$ protoc object_detection/protos/*.proto --python_out=.
object_detection/protos/anchor_generator.proto:11:3: Expected "required", "optional", or "repeated".
object_detection/protos/anchor_generator.proto:11:32: Missing field number.

what is wrong ?

Could you help me?

thank you very much

@danzelmo
Copy link

I am not sure what is wrong in your specific example. This type of question is also better suited to stackoverflow, you can ask, there and may get more responses.

@L-CY
Copy link

L-CY commented Jun 19, 2017

Solved by updating protobuf

@derekjchow
Copy link
Contributor

@10183308 as mentioned, this issue is most likely caused an outdated version of the protobuf compiler. You can download a more recent version of the protobuf compiler here: https://github.com/google/protobuf/releases

We recommend using protobuf 2.6.1 or higher.

@korrawat
Copy link
Contributor

Should the object detection tutorial mention the installation in the beginning? Issues #1562, #1591, #1595 and this one are all related to not knowing that such installation (especially the Protobuf compilation step) is required. This would make the tutorial clearer and avoid future confusion.

@arnaudmiribel
Copy link

@danzelmo your comment fixed the issue for me.
@korrawat I do agree these commands should be in the README.

@JaydipB94
Copy link

But when i do...
"protoc object_detection/protos/*.proto--python_out=."
The terminal responds as "Missing output directives."

@danzelmo
Copy link

You to add a space. Use protoc object_detection/protos/*.proto --python_out=. instead of
protoc object_detection/protos/*.proto--python_out=.

@JaydipB94
Copy link

Thanks @danzelmo, problem solved!

@ali01
Copy link

ali01 commented Jun 30, 2017

Looks like the installation instructions on the object detection tutorial do include a mention of the Protobuf requirement. Closing this issue.

@Bastien123
Copy link

You to add a space. Use protoc object_detection/protos/*.proto --python_out=. instead of
protoc object_detection/protos/*.proto--python_out=.

Hi, I have the same problem and I did as you said : now I have the file string_int_label_map_pb2, in the right place, but he still says that he can not find it :/

ImportError: cannot import name 'string_int_label_map_pb2'

Do you have any idea?

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

9 participants