qboticslabs / ros_robotics_projects

Example codes of new book ROS Robotics Projects
http://rosrobots.com
314 stars 213 forks source link

[Error]TesorFlow image_recongnition.py #2

Open Dhivin opened 7 years ago

Dhivin commented 7 years ago

[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 commented 7 years ago

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".

https://github.com/tensorflow/tensorflow/issues/582

Dhivin commented 7 years ago

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

Worked for me .

Thanks anyway.

qboticslabs commented 7 years ago

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

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