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

convert onnx model of decode part of SAM failed. #2832

Closed
AminGeng opened this issue Apr 17, 2024 · 3 comments
Closed

convert onnx model of decode part of SAM failed. #2832

AminGeng opened this issue Apr 17, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@AminGeng
Copy link

i compiled MNNConvert(2024.04.17 pulled from master branch)on ubuntu20.04. it convert onnx model of image encode part of SAM successfully. but when i tried to convert decode part, it failed.
(both onnx models work well under onnxruntime python.)
convert command
./MNNConvert -f ONNX --modelFile the_rest.onnx --MNNModel the_rest.mnn --bizCode MNN
failed info:

The device support i8sdot:0, support fp16:0, support i8mm: 0
Start to Convert Other Model Format To MNN Model..., target version: 2.8
[16:37:20] /home/amin_u_20/work/MNN-master/tools/converter/source/onnx/onnxConverter.cpp:46: ONNX Model ir version: 8
[16:37:20] /home/amin_u_20/work/MNN-master/tools/converter/source/onnx/onnxConverter.cpp:47: ONNX Model opset version: 17
Start to Optimize the MNN Net...
Segmentation fault

model url: https://github.com/AminGeng/Models/blob/main/the_rest.onnx

@jxt1234 jxt1234 added the bug Something isn't working label Apr 17, 2024
@jxt1234
Copy link
Collaborator

jxt1234 commented Apr 17, 2024

Reproduced. Debuging.

@jxt1234
Copy link
Collaborator

jxt1234 commented Apr 23, 2024

Crash error has been fixed in 2.8.4. But still has a layernorm fuse error. Fixing.

@jxt1234
Copy link
Collaborator

jxt1234 commented May 11, 2024

Layernorm bug has been fixed in 2.9.0

@jxt1234 jxt1234 closed this as completed May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants