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 output and pytorch output are inconsistent #10

Closed
SeanLiu081 opened this issue Apr 28, 2023 · 6 comments
Closed

Onnx output and pytorch output are inconsistent #10

SeanLiu081 opened this issue Apr 28, 2023 · 6 comments

Comments

@SeanLiu081
Copy link

Thanks for open-sourcing this great work. I have encountered a problem now. When I convert the model to onnx and tensorrt, the landmark result of trt/onnx is different from the result of pytorch model. I find the problem is self.conv_window in onnx,you can see the result before self.conv_window and after self.conv_window. I print the crops[0, :5, :5] before self.conv_window[0] of torch and onnx,they are same,
image
image
After self.conv_window[0],the visual_fts[0,:5,:5] are different,
image
image

@SeanLiu081
Copy link
Author

SeanLiu081 commented Apr 28, 2023

the onnx/trt result :
image

the pytorch result:
image

@edmosRovi
Copy link

Hello, I'm interested in how to convert the modelo to ONNX formato. I have try it but my ONNX modelo nota works, fails in the execution. Please could you tell me how do you get the ONNX model??
I opened an issue here but nobody answer me yet:
#4

@john09282922
Copy link

Hi, can u share onnx file?

@edmosRovi
Copy link

Sure, I leave a link with two onnx I did when I tested it, one using opset16 and the other opset 17. Any help you can give me to make this network work in onnx will be welcome. Thank you very much.

https://we.tl/t-AEaFfgzM7P

@john09282922
Copy link

Thanks for open-sourcing this great work. I have encountered a problem now. When I convert the model to onnx and tensorrt, the landmark result of trt/onnx is different from the result of pytorch model. I find the problem is self.conv_window in onnx,you can see the result before self.conv_window and after self.conv_window. I print the crops[0, :5, :5] before self.conv_window[0] of torch and onnx,they are same, image image After self.conv_window[0],the visual_fts[0,:5,:5] are different, image image

Hi, sean, Did u solve this problem? would you mind sharing onnx file??

@lokeycookie
Copy link

@SeanLiu081
is it possible for you to share what steps you took to generate the onnx files?

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

4 participants