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 parsing message #13

Open
MingshanHe opened this issue Feb 22, 2021 · 4 comments
Open

Error parsing message #13

MingshanHe opened this issue Feb 22, 2021 · 4 comments

Comments

@MingshanHe
Copy link

I have run my own model but there are some wrong as this:
od_graph_def.ParseFromString(serialized_graph)
google.protobuf.message.DecodeError: Error parsing message

OS: Ubuntu 20.04
ROS: noetic
TF: 2.4.1
Python: 3.8.5

Help me Please.

@codebot
Copy link
Member

codebot commented Feb 23, 2021

That seems like an error coming from how this package and/or your configuration is using TensorFlow, because the ROS wrapper in this package does not use protobuf. If you follow the instructions in the README of this package using a pre-trained SSD model, does it work as expected?

@MingshanHe
Copy link
Author

MingshanHe commented Feb 25, 2021

Yes, It's exactly worked. But I would like to use my own training model which is used tensorflow, and it doesn't work like that. So it‘s any wrong in the protobuf?

@hwan30
Copy link

hwan30 commented Oct 12, 2022

Yes, It's exactly worked. But I would like to use my own training model which is used tensorflow, and it doesn't work like that. So it‘s any wrong in the protobuf?

Hi Mingshan, I am encountering the same issue. Did you ever find out how to add you own model. I followed TensorFlow object detection api to train and export my model. The file format are different and there is no .meta. file. I wonder how can I replace the example model with mine.

@MingshanHe
Copy link
Author

I am so sorry that my project is completed in Feb 2021. And I forgot the main steps to solve this issue. But I have the successful project repository which I think could be helpful for you.

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

3 participants