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

google.protobuf.message.DecodeError: Truncated message #2

Open
zxzhijia opened this issue Jun 22, 2016 · 1 comment
Open

google.protobuf.message.DecodeError: Truncated message #2

zxzhijia opened this issue Jun 22, 2016 · 1 comment

Comments

@zxzhijia
Copy link

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.

@MyadaRoshdi
Copy link

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

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

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