#242 · Primary category: Computer Vision

YOLO-Patch-Based-Inference

computer-vision detection fastsam inference non-maximum-suppression patch-based patch-based-inference patch-inference patchify pip-package pypi-package rtdetr sahi slicing-inference small-object-detection yolo yolo11 yolov8 yolov8-seg yolov9

Python library for YOLO small object detection and instance segmentation

Project last updated:04/22/26

GitHub Stars

557

Forks

32

Contributors

5

License

AGPL-3.0

Why we included this project

Small objects are the classic failure case for object detectors: by the time a tiny target is downscaled to fit the network input, it has often shrunk to a few pixels and gets missed entirely. This library handles that the way SAHI does, by slicing the image into overlapping patches and running inference on each one before merging the results with non-maximum suppression. It wraps Ultralytics models, so you can point it at YOLOv8, YOLO11, YOLOv9, RTDETR, or FastSAM checkpoints, including custom-trained ones, and it covers both detection and instance segmentation. If your work involves aerial imagery, satellite data, or high-resolution industrial photos where targets are small relative to the frame, the pip-installable package and the included Colab notebooks are a practical starting point. The library also has its own visualization helpers for both direct and patch-based runs, which is handy when you want consistent output styling across experiments.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category