SAHI adds tiled inference, COCO utilities, error-analysis plots, and CLI tools on top of many object-detection frameworks for small objects in big images.
Overview
SAHI (Slicing Aided Hyper Inference) is a Python vision library for detecting small objects in large images by slicing tiles and merging results. It stays framework-agnostic and plugs into Ultralytics, Hugging Face, YOLOv5, MMDetection, Roboflow, and related stacks.
Commands cover slicing COCO datasets, evaluating predictions, and generating error-analysis plots. Prediction APIs support standard and sliced modes, plus video inference workflows.
Integrations include FiftyOne for interactive inspection. Documentation is indexed for Context7 MCP and ships an llms.txt file for AI assistants.
Installation starts from PyPI with optional framework-specific dependencies for chosen detectors.
Key features
- Sliced tiled inference
- Framework-agnostic APIs
- COCO slicing utilities
- Error analysis plotting
- Video inference support
- FiftyOne integration
Use cases
- Satellite image object detection
- Aerial small-object search
- Large-image COCO evaluation
- Remote sensing pipelines