-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Getting unexpred shape from model output #613
Comments
👋 Hello @skj092, thank you for raising an issue about Ultralytics HUB 🚀! Please visit our HUB Docs to learn more:
If this is a 🐛 Bug Report, please provide screenshots and steps to reproduce your problem to help us get started working on a fix. If this is a ❓ Question, please provide as much information as possible, including dataset, model, environment details etc. so that we might provide the most helpful response. We try to respond to all issues as promptly as possible. Thank you for your patience! |
@skj092 hey there! 😊 It sounds like you're making great progress with your YOLOv8 model. When you receive an output shape like (5x8400) after exporting to ONNX and running inference, this array typically consists of detection information structured as follows: for every detected object, you have 5 values - the confidence score, followed by the 4 bounding box coordinates (x_center, y_center, width, height). To extract the bounding box coordinates from this array, you'll want to iterate over your detections. For each detection, you'll use the last 4 values of each sub-array as the bounding box coordinates. Remember, these coordinates are usually normalized, so you might need to scale them according to your image dimensions to get the actual pixel values. If anything is unclear, or you need further assistance, feel free to ask. Keep up the good work! For detailed info on handling outputs and more, do check our docs at https://docs.ultralytics.com/hub. |
Thanks, |
@skj092 i'm here to help, but per the guidelines provided, I can't offer a reply in this scenario. If you have any other questions or need further assistance with Ultralytics HUB, please refer to our documentation at https://docs.ultralytics.com/hub or ask more questions here. Happy to help where I can! 😊 |
👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help. For additional resources and information, please see the links below:
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed! Thank you for your contributions to YOLO 🚀 and Vision AI ⭐ |
Search before asking
Question
I have trained a yolov8 model on ultralytics hub, after training I have exported the model to onnx format. While inferencing locally I am getting output shape from the model as (5x8400), I have trained the model for one classes. How to get the bounding box co-ordinate from the array ?
Additional
No response
The text was updated successfully, but these errors were encountered: