SAHI
Slicing aided inference library that improves small object detection on large images with any detector.
About
Small objects get lost when a high resolution image is squeezed down to a detector's input size, and SAHI attacks that problem by slicing the image into overlapping tiles, running inference on each slice, and merging the predictions back into full-image coordinates. The approach, called slicing aided hyper inference, works as a wrapper around existing models rather than a new architecture, with adapters for Ultralytics YOLOv8 through YOLO26, MMDetection, Detectron2, TorchVision, Hugging Face Transformers, RT-DETR, Roboflow RF-DETR, YOLO-World, and YOLOE. The package installs with pip install sahi, adds a CLI for prediction plus COCO dataset utilities such as slicing, subsetting, and error analysis, and integrates with FiftyOne for visual inspection. It runs wherever the underlying detector runs, on CPU or GPU, and is released under the MIT license. The method was published at IEEE ICIP 2022 and is widely used for aerial and satellite imagery, surveillance footage, and other domains where targets occupy a handful of pixels; the repository has passed 5,000 GitHub stars.
Reviews (0)
Leave a Review
No reviews yet. Be the first to review!
Details
- Price
- Free
- Platform
- Local/Desktop
- Difficulty
- Easy (2/5)
- License
- MIT
- Added
- Jul 29, 2026
Related Tools
Contrastive language-image pre-training model by OpenAI for zero-shot visual classification.
Lightweight face recognition and analysis framework wrapping multiple models.
Foundation model for monocular depth estimation by TikTok.
Monocular depth estimation model producing detailed depth maps from single images.
Meta AI research platform for object detection, segmentation, and pose estimation.
Simple and effective multi-object tracking using every detection box.