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 regarding the name of the output layer when converting .pt(ultralytics yolov3) to onnx #2

Closed
leeyunhome opened this issue Feb 4, 2021 · 1 comment

Comments

@leeyunhome
Copy link

leeyunhome commented Feb 4, 2021

Hello,
Thank you for sharing a great project.
When yolov3.pt is converted to onnx, you can check the output as 371, 391, output, not classes and boxes.

The output should come out as classes, boxes, and the question about this is:
Any advice would be appreciated.

You can check my situation at the following address.
https://github.com/ultralytics/yolov5/issues?q=is%3Aissue+is%3Aopen+onnx

Thank you.

@BobLd
Copy link
Owner

BobLd commented Feb 5, 2021

Hi @leeyunhome, checking from the screenshot of output here, your model is not ouputing classes and boxes, but feature maps (has commented in your other issue).

Please check my YOLOV4 project - It has the same kind of outputs. I think you will need to change the shapes array by [] { 80, 40, 20} - see here

For the post-processing, you can find an implementation onnms (non-max suppression) here.

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