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

onnx-tf convert onnx to pb format successfully, but no output layer #421

Open
noending opened this issue May 16, 2019 · 4 comments
Open

Comments

@noending
Copy link

when i use "onnx-tf convert -t tf -i squeeze1-11.onnx -o squeeze1-11.pb" to convert squeezent from onnx to pd format, i got pb file without any errors,
Scr

but when use netron to see the onnx and pb file, pb without output
Scre1
can anyone tell me how to solve this issue, many thx. By the way squeezenet was trained by pytorch1.0, I convert it from pytorch pth to onnx and then to pb, trying to deploy on the mobile device.

@ftaralle
Copy link

ftaralle commented Jun 4, 2019

Hi,
I got the same "issue" converting pytorch -> onnx -> tensorflow -> tensorflow-lite
In fact, in netron, you can click on the last "Reshape" block, to show the information pannel.
it seems we can use the name provided in NODE PROPERTIES
to be noted that I havent tried the resulting tensorflow model yet.

@fumihwh
Copy link
Collaborator

fumihwh commented Jul 17, 2019

@noending Is Reshape output's name output1 in pb?

@noending
Copy link
Author

Hi,
I got the same "issue" converting pytorch -> onnx -> tensorflow -> tensorflow-lite
In fact, in netron, you can click on the last "Reshape" block, to show the information pannel.
it seems we can use the name provided in NODE PROPERTIES
to be noted that I havent tried the resulting tensorflow model yet.
@ftaralle many thx, i've retrained nn in tf and coverted it to tflite.

@noending
Copy link
Author

@noending Is Reshape output's name output1 in pb?

@fumihwh 当然不是啊, 已经弃坑, 用tf重新训练了

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