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

ImportError: cannot import name 'string_int_label_map_pb2' from 'object_detection.protos' (/home/sumukha/Desktop/auto_annotate-master/scripts/object_detection/protos/__init__.py) #15

Closed
sumukhaadiga02 opened this issue May 23, 2021 · 5 comments

Comments

@sumukhaadiga02
Copy link

The above error occurs while running detection_images.py. Please help me resolving the issue

@AlvaroCavalcante
Copy link
Owner

Hello @sumukhaadiga02, I've never seen this error before in my project, what TensorFlow version are you using? Did you install all the requirements for running an object detection API? Try to run some example projects inside models/research/object-detection in the TensorFlow repo and see if it works! This seems like a problem in your environment.

@sumukhaadiga02
Copy link
Author

Thanks. I have another doubt. What is the meaning of that frozen_inference_graph.pb file which should we added to /graphs folder.

@AlvaroCavalcante
Copy link
Owner

frozen_inference_graph.pb is just your trained model! They call the file frozen because the weights of the network can't be trained anymore, it's a final version of your model. In version 1.x of TensorFlow, it was very common to get frozen_inference_graphs as a result of training the model, that's why I'm using this idea here. Today, it's usual to have some checkpoint files, that can be retrained if you want. So, you can adapt the inference code to run with your checkpoints or you can also easily convert your checkpoints to one frozen_inference_graph.pb file that will be pasted in the folder and used in this project!

@AlvaroCavalcante
Copy link
Owner

I'll close this due to inactivity!

@sumukhaadiga02
Copy link
Author

sumukhaadiga02 commented Jun 7, 2021 via email

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