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 修改后模型转化 #244

Open
zli20 opened this issue Dec 31, 2024 · 2 comments
Open

onnx 修改后模型转化 #244

zli20 opened this issue Dec 31, 2024 · 2 comments

Comments

@zli20
Copy link

zli20 commented Dec 31, 2024

我要转化的onnx模型是用两个模型修改拼接的,加载模型报错。在onnxruntime中修改后的模型是可以正常推理的,不存在节点命名不正确。具体报错如下:
jietu

@yuyun2000
Copy link

onnxsim搞一下

@zli20
Copy link
Author

zli20 commented Dec 31, 2024

已解决,onnxsim和onnx.checker后发现有同样的问题,原因是模型在拼接时没考虑节点顺序,onnxruntime推理时可以自动推断onnx模型的节点顺序,其他框架不适配。调整节点顺序后,模型转化成功。

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