-
-
Notifications
You must be signed in to change notification settings - Fork 17.2k
Add minimal YOLOv5 inference script #13633
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
base: master
Are you sure you want to change the base?
Add minimal YOLOv5 inference script #13633
Conversation
All Contributors have signed the CLA. ✅ |
👋 Hello @MohiteYash, thank you for submitting an
For detailed contribution steps, please see our Contributing Guide. If you have any questions, feel free to comment here and an Ultralytics engineer will assist you soon. This is an automated response 🤖, but our team will review your PR and provide feedback shortly. Thank you for contributing to Ultralytics! 🚀 |
Hi maintainers 👋 — I'm seeing a "There is no CLA to sign for ultralytics/yolov5" error from the CLA Assistant bot. It seems the CLA isn't currently set up on this repo. Could you please check or disable the CLA check? Thanks! |
I have read the CLA Document and I sign the CLA |
recheck |
Thanks for this contribution @MohiteYash! A minimal inference example is exactly what many new users need to get started with YOLOv5. The CLA bot appears to be having issues - this is a known intermittent problem and the team will handle the CLA verification manually during review. Your concept of providing a beginner-friendly script alongside the full-featured |
Summary
This PR adds a lightweight and minimal YOLOv5 inference script (
inference_minimal.py
) for users who want a simple, clean way to run inference on a single image using pretrained models.Features
torch
,opencv-python
,PIL
,matplotlib
)--img-path
as inputMotivation
The existing
detect.py
script is full-featured but not beginner-friendly. This PR provides a cleaner starting point for new users, educational purposes, or quick tests.Example Usage