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

[Error]TesorFlow image_recongnition.py #2

Open
Dhivin opened this issue Apr 7, 2017 · 3 comments
Open

[Error]TesorFlow image_recongnition.py #2

Dhivin opened this issue Apr 7, 2017 · 3 comments

Comments

@Dhivin
Copy link

Dhivin commented Apr 7, 2017

[libprotobuf ERROR google/protobuf/io/coded_stream.cc:207] A protocol message was rejected because it was too big (more than 67108864 bytes). To increase the limit (or to disable these warnings), see CodedInputStream::SetTotalBytesLimit() in google/protobuf/io/coded_stream.h.
Traceback (most recent call last):
File "image_recognition.py", line 48, in
tensor = RosTensorFlow()
File "image_recognition.py", line 15, in init
classify_image.create_graph()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/models/image/imagenet/classify_image.py", line 141, in create_graph
graph_def.ParseFromString(f.read())
I get this error when i run the Ros-tesnorflow example.

@qboticslabs
Copy link
Owner

Hi @Dhivin
The problem seems to be with TensorFlow. There is a discussion happening about this issue in the following GitHub thread. I have tested this code in " TensorFlow with CPU support only".

tensorflow/tensorflow#582

@Dhivin
Copy link
Author

Dhivin commented Apr 7, 2017

sudo pip install --force-reinstall --upgrade protobuf

Worked for me .

Thanks anyway.

@qboticslabs
Copy link
Owner

That's great :), so one of the working solution is

$ sudo pip install --force-reinstall --upgrade protobuf

@qboticslabs qboticslabs reopened this Apr 7, 2017
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