yolov5
yolov5 copied to clipboard
New Feature: added cmd line arg for saving only positives
Added a simple command line argument (default False) where if set to true, only the images and videos which contain a positive identification are saved to the output. Currently outputting the images/video in detect.py is all or nothing. This addition prevents creating duplicate files which contain no detections, while allowing for positive detections to be saved. Location in code is not extremely efficient, but is present at that location for readability and minimal intrusiveness.
I have read the CLA Document and I sign the CLA
π οΈ PR Summary
Made with β€οΈ by Ultralytics Actions
π Summary
Introducing a new option to save only positive detections in YOLOv5 πΈβ
π Key Changes
- Added a new flag
savepositives
to the detection script. This allows users to choose to save only images or videos that contain positive detections (detections that the model is confident about).
π― Purpose & Impact
- Efficiency Boost: This change helps save storage space and makes it easier for users to review positive detections by not saving images or videos without any detections. π
- User-Friendly: It enhances the usability of YOLOv5 for various projects, especially those where users are only interested in instances where the model finds something of interest. π
- Potential Impact: This addition could significantly benefit users running detection tasks in resource-constrained environments or dealing with large datasets where filtering out no-detection outputs manually would be impractical. π
All Contributors have signed the CLA. β
Posted by the CLA Assistant Lite bot.
Please accept the CLA with a new comment with:
I have read the CLA Document and I sign the CLA
I have read the CLA Document and I sign the CLA