Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

google.protobuf.message.DecodeError: Error parsing message

I am doing the tutorial on https://www.tensorflow.org/versions/master/tutorials/image_recognition/index.html

and working on the Python API section, I launched python classify_image.py

Here I am getting the error message out like so:

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.

So, I tried to access the file coded_stream.h, but I cannot get to it as the directory tree is getting me to google/protobuf and no further. There is no io directory. Any hints on what I should do now?

thanks Peter

like image 641
Peter HIRT Avatar asked Feb 15 '26 22:02

Peter HIRT


1 Answers

You need to install the custom protobuf pip package as detailed here: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#protobuf-library-related-issues

EDIT : (updating link) https://www.tensorflow.org/versions/r1.0/install/install_linux#protobuf_pip_package_31

like image 133
Yaroslav Bulatov Avatar answered Feb 19 '26 03:02

Yaroslav Bulatov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!