Tensorflow-Examples icon indicating copy to clipboard operation
Tensorflow-Examples copied to clipboard

google.protobuf.message.DecodeError: Truncated message

Open zxzhijia opened this issue 8 years ago • 1 comments

Thank you for your sharing first. I tried to run your code on my computer and load my .pb and .txt files. it gives me error: pi@raspberrypi:~/robotimages $ python retrain_example.py Traceback (most recent call last): File "retrain_example.py", line 86, in run_inference_on_image() File "retrain_example.py", line 63, in run_inference_on_image create_graph() File "retrain_example.py", line 49, in create_graph graph_def.ParseFromString(f.read()) File "/usr/local/lib/python2.7/dist-packages/google/protobuf/message.py", line 185, in ParseFromString self.MergeFromString(serialized) File "/usr/local/lib/python2.7/dist-packages/google/protobuf/internal/python_message.py", line 1091, in MergeFromString if self._InternalParse(serialized, 0, length) != length: File "/usr/local/lib/python2.7/dist-packages/google/protobuf/internal/python_message.py", line 1127, in InternalParse pos = field_decoder(buffer, new_pos, end, self, field_dict) File "/usr/local/lib/python2.7/dist-packages/google/protobuf/internal/decoder.py", line 610, in DecodeRepeatedField raise _DecodeError('Truncated message.') google.protobuf.message.DecodeError: Truncated message.

zxzhijia avatar Jun 22 '16 00:06 zxzhijia

i have the same problem trying to use ParseFromString() ,

raise _DecodeError('Truncated message.') google.protobuf.message.DecodeError: Truncated message.

MyadaRoshdi avatar Aug 28 '18 18:08 MyadaRoshdi