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 model inference #13343

Open
1 task done
anazkhan opened this issue Oct 4, 2024 · 2 comments
Open
1 task done

Yolov5s onnx model inference #13343

anazkhan opened this issue Oct 4, 2024 · 2 comments
Labels
question Further information is requested

Comments

@anazkhan
Copy link

anazkhan commented Oct 4, 2024

Search before asking

Question

Hi , I am unable to get bounding boxes from the output i got by running yolov5s onnx model in onnx runtime. The output is list of arrays of the shape (3,52,52,85) , (3,26,26,85) , (3,13,13,85) respectively . it will be helpful if you can provide me with the postprocess code to define the bounding boxes.

Additional

No response

@anazkhan anazkhan added the question Further information is requested label Oct 4, 2024
@UltralyticsAssistant
Copy link
Member

UltralyticsAssistant commented Oct 4, 2024

👋 Hello @anazkhan, thank you for your interest in YOLOv5 🚀! Please check out our ⭐️ Tutorials for guidance on various tasks such as ONNX Export and Inference.

If this is a 🐛 Bug Report, please provide a minimum reproducible example to help us debug it. For your specific issue, ensuring you have the correct post-processing steps is key when working with ONNX outputs.

Also, make sure you meet the following requirements:

Requirements

Python>=3.8.0 with all requirements.txt installed. To get started:

git clone https://github.com/ultralytics/yolov5  # clone
cd yolov5
pip install -r requirements.txt  # install

Environments

YOLOv5 can be run in any of the following environments:

  • Notebooks with free GPU: Run on Gradient Open In Colab Open In Kaggle
  • Google Cloud, AWS, Docker: See respective Quickstart Guides

Status

Check our CI Status:
YOLOv5 CI

If the badge is green, all tests are passing 👍.

Introducing YOLOv8 🚀

Explore our state-of-the-art YOLOv8 here for enhanced capabilities in object detection and image processing tasks. Install with:

pip install ultralytics

This is an automated response. An Ultralytics engineer will assist you further soon. Thanks for your patience! 😊

@pderrenger
Copy link
Member

@anazkhan to extract bounding boxes from the YOLOv5s ONNX model output, you'll need to apply non-max suppression and decode the predictions. You can refer to the post-processing steps in the YOLOv5 repository's detect.py script, which includes functions for these tasks. If you need further guidance, please check the YOLOv5 documentation for detailed instructions.

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

3 participants