forked from ultralytics/ultralytics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
45 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# YOLOv8 Object Counting | ||
Object counting entails the task of enumerating unique objects or occurrences within an image or video frame, serving as a foundational element in computer vision, with applications spanning crowd management and inventory control. The incorporation of Object Counting into YOLOv8 offers an uncomplicated workflow, enabling real-time inference and enhanced precision. | ||
|
||
## Table of Contents | ||
|
||
- [Usage Options](#usage-options) | ||
- [FAQ](#faq) | ||
|
||
## Usage Options | ||
|
||
- `--source`: Specifies the path to the video file you want to run inference on. | ||
- `--save-img`: Flag to save the detection results as images. | ||
- `--weights`: Specifies a different YOLOv8 model file (e.g., `yolov8n.pt`, `yolov8s.pt`, `yolov8m.pt`, `yolov8l.pt`, `yolov8x.pt`). | ||
|
||
## FAQ | ||
|
||
**1. What is SAHI?** | ||
|
||
SAHI stands for Slicing, Analysis, and Healing of Images. It is a library designed to optimize object detection algorithms for large-scale and high-resolution images. The library source code is available on [GitHub](https://github.com/obss/sahi). | ||
|
||
**2. Why use SAHI with YOLOv8?** | ||
|
||
SAHI can handle large-scale images by slicing them into smaller, more manageable sizes without compromising the detection quality. This makes it a great companion to YOLOv8, especially when working with high-resolution videos. | ||
|
||
**3. How do I debug issues?** | ||
|
||
You can add the `--debug` flag to your command to print out more information during inference: | ||
|
||
```bash | ||
python yolov8_sahi.py --source "path to video file" --debug | ||
``` | ||
|
||
**4. Can I use other YOLO versions?** | ||
|
||
Yes, you can specify different YOLO model weights using the `--weights` option. | ||
|
||
**5. Where can I find more information?** | ||
|
||
For a full guide to YOLOv8 with SAHI see [https://docs.ultralytics.com/guides/sahi-tiled-inference](https://docs.ultralytics.com/guides/sahi-tiled-inference/). |