-
Notifications
You must be signed in to change notification settings - Fork 60
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
I get an error when try to use yolov8m.onnx in wonnx-wasm-example #174
Comments
Can you share the specific onnx file you are using? The error in general means that the output is missing somehow. If it is in the ONNX file and properly connected, there may be an issue in the optimizer. |
Hi, I used python and yolov8 to export this file. When export it's possible to add some arguments. This is the list of arguments |
Good news and bad news: The above does seem to be a bug in the optimizer, it appears to attempt constant folding on the missing node. I just committed 5d20e96 to fix that. Now unfortunately I get a different issue: RUST_LOG=wonnx=debug RUST_BACKTRACE=1 cargo run --release -- infer ~/Downloads/yolov8m-simplified-2.onnx
It does appear the
So for some reason it thinks there should be four buffers in one place but three in another. In the generated shader code, it has three (as expected: the
Hence, there must still be two inputs in the IR (even after This needs some further investigation (I don't have the time for it now) but at least we know where to look. |
Cool, good to know about this. Thank you a lot for your super fast help and answer. |
Hi @pixelspark, I've encountered the same error trying to run YOLOv8 via wonnx. Have you had a chance to look into this issue yet? If you don't have time for that, but could offer some guidance in debugging, that would be very much appreciated too :) |
I haven't (and frankly don't have the time), unfortunately. If I were you I would start by investigating whether your ONNX file too has the issue with the Split operator, and check how many inputs it has. You might be able to rewrite (using Python onnx package) the ONNX file to something wonnx accepts. Another possibility would be to tweak the ONNX opset version (perhaps the issue is caused because there are different forms Split can take depending on the opset version). |
Describe the bug
A clear and concise description of what the bug is.
Hi,
I try to use your example (https://github.com/webonnx/wonnx-wasm-example).
When I try to use yolov8m.onnx (a coco datset exported with YOLOv8 to onnx), I get this error
SessionError 'IR error: output node for output /model.0/conv/Conv_output_0 not found'
To Reproduce
Steps to reproduce the behavior:
Expected behavior
To not have error
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: