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

[Question] onnxslim的优化问题 #28

Open
mfkhandsome opened this issue Oct 14, 2024 · 4 comments
Open

[Question] onnxslim的优化问题 #28

mfkhandsome opened this issue Oct 14, 2024 · 4 comments
Assignees
Labels
question Further information is requested wontfix This will not be worked on

Comments

@mfkhandsome
Copy link

我在yolov5网络中更改了我的模型,但当我使用onnxslim对我的onnx模型进行onnxslim Our-slim.onnx Our-slim2.onnx这一步的操作时,他并没有将unsqueeze这些给优化掉。
onnxslim

@inisis
Copy link
Owner

inisis commented Oct 14, 2024

Can you prodive your onnx and onnxruntime version

@mfkhandsome
Copy link
Author

mfkhandsome commented Oct 14, 2024

Can you prodive your onnx and onnxruntime version

my onnx and onnxruntime version is onnx 1.16.0 and onnxruntme is 1.17.1
onnx

@inisis inisis self-assigned this Oct 14, 2024
@inisis
Copy link
Owner

inisis commented Oct 14, 2024

you can check onnx and onnxruntime version compatibility here, https://onnxruntime.ai/docs/reference/compatibility.html

image

for your case, you should downgrade your onnx version to 1.15

@mfkhandsome
Copy link
Author

you can check onnx and onnxruntime version compatibility here, https://onnxruntime.ai/docs/reference/compatibility.html

image

for your case, you should downgrade your onnx version to 1.15

This is a viable method. When I switched to ONNX 1.15.0 and later, I was able to use onnxslim to complete the optimization, while onnxsim could not optimize my custom model. Thank you so much; the onnxslim model has been a great help to me.
onnx1

@inisis inisis added the wontfix This will not be worked on label Oct 19, 2024
@inisis inisis changed the title onnxslim的优化问题 [Question] onnxslim的优化问题 Oct 19, 2024
@inisis inisis added the question Further information is requested label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants