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

Yolov5s onnx export but with required output format #6155

Closed
1 task done
sezer-muhammed opened this issue Jan 2, 2022 · 2 comments
Closed
1 task done

Yolov5s onnx export but with required output format #6155

sezer-muhammed opened this issue Jan 2, 2022 · 2 comments
Labels
question Further information is requested

Comments

@sezer-muhammed
Copy link

Search before asking

Question

Hi,
I need to run yolov5s on jetson nano, I know jetson can run directly pth file but I want to do it with onnx file.

I convert yolov5s model into onnx file without any problem, and I can run it on jetson nano.

But problem is output type

Screenshot from 2022-01-02 15-33-21
.

As you can see in image, yolov5 has a output with size 114k85
but example model that compatible with jetson inference library from dusty_nv has an output with scores and boxes.

This causes problem because I guess they coded in this way, so I need to turn yolov5 into this format.

Normally I would change models output layer but yolov5s is a bit complicated for me.

So how can I achieve this?

thanks

Additional

No response

@sezer-muhammed sezer-muhammed added the question Further information is requested label Jan 2, 2022
@d57montes
Copy link
Contributor

The yolov5 model output still needs to be post-processed: this includes non-max-suppression among other things. You can see #708 that talks about this. I believe they link some other issues that discusses this even more.
However, you can get get combined non-max-suppression in your ONNX model by following the workflow described in #5938.

@sezer-muhammed
Copy link
Author

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants