sahi-inference

Run tiled SAHI inference on large drone orthomosaic images.

2|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/cwinkelmann/usde-innovations-applications-forest-it --skill sahi-inference
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sahi-inference
Source: https://github.com/cwinkelmann/usde-innovations-applications-forest-it/tree/main/.claude/skills/sahi-inference
Command: npx skills add https://github.com/cwinkelmann/usde-innovations-applications-forest-it --skill sahi-inference

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

SAHI is a tiled inference framework that enables robust object detection on very large images by splitting them into overlapping tiles, running detectors on each tile, and merging results to full-image coordinates. This approach is essential for wildlife monitoring from drone orthomosaics and satellite imagery where small targets can be missed in a single pass.

Core Features & Use Cases

  • Slice-based inference: operate on oversized images by tiling with controlled overlap to ensure full object visibility.
  • AutoDetectionModel integration and get_sliced_prediction usage: plug-in YOLO, Detectron2, MMDet, or other backends with SAHI for scalable workflows.
  • Postprocessing options: NMS and NMM merging strategies to resolve duplicates and dense clusters; supports drone orthomosaic pipelines.
  • Integration with drone/image pipelines: supports MegaDetector wrapping and GIS-ready outputs for census, monitoring, and biodiversity surveys.

Quick Start

Run a sliced inference on a large orthomosaic using SAHI with a YOLO model.

Frequently Asked Questions about sahi-inference

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run object detection on large drone imagery without missing small targets?

Tiled inference applies SAHI's get_sliced_prediction to split large drone orthomosaics into overlapping tiles, run object detection on each tile, and merge results back to full-image coordinates to catch small targets.

What is the best way to detect wildlife in very large drone orthomosaic images?

SAHI-based tiled inference detects wildlife in drone orthomosaics by slicing images into overlapping tiles, running detectors on each, and merging predictions using NMS or NMM to resolve duplicates and dense clusters.

Can I use YOLO with SAHI for sliced inference on satellite tiles?

Yes, SAHI's AutoDetectionModel backend supports YOLO, Detectron2, and MMDet for sliced inference on satellite tiles. You use get_sliced_prediction to process large images and merge overlapping tile predictions.

When do I need tiled inference for object detection?

You need tiled inference when processing very large images like drone orthomosaics or satellite tiles where single-pass object detection misses small targets. SAHI splits images into overlapping tiles to ensure full target visibility.

How does NMM merging differ from NMS for drone survey object detection?

NMM merging resolves dense clusters of objects in drone survey predictions, whereas NMS simply suppresses overlapping duplicates. NMM is better suited for crowded wildlife scenes where multiple targets overlap across tiles.

Does MegaDetector work with SAHI for wildlife monitoring from drone surveys?

Yes, MegaDetector can be wrapped with SAHI for wildlife monitoring from drone surveys. The tiled inference pipeline supports MegaDetector wrapping to produce GIS-ready outputs for census, monitoring, and biodiversity surveys.