Skip to content

Interactive Notebooks

Hands-on Jupyter notebooks demonstrating SAHI with different detection frameworks. Each notebook can be run directly in Google Colab or cloned from the demo directory on GitHub.

Inference Notebooks

Notebook Framework Models Links
Ultralytics ultralytics YOLOv8, YOLO11, YOLO26 Open In Colab GitHub
YOLOE ultralytics YOLOE variants Open In Colab GitHub
YOLOv5 yolov5 YOLOv5 variants Open In Colab GitHub
HuggingFace huggingface DETR, Deformable DETR, DETA Open In Colab GitHub
RT-DETR rtdetr RT-DETR variants Open In Colab GitHub
MMDetection mmdet 300+ detection models Open In Colab GitHub
Detectron2 detectron2 Detectron2 models Open In Colab GitHub
TorchVision torchvision Faster R-CNN, RetinaNet, FCOS, SSD Open In Colab GitHub
Roboflow roboflow RF-DETR Open In Colab GitHub

Utility Notebooks

Notebook Description Links
Slicing Image and COCO dataset slicing operations Open In Colab GitHub

Running Locally

Clone the repository and run notebooks with Jupyter:

git clone https://github.com/obss/sahi.git
cd sahi
pip install -e ".[dev]"
jupyter notebook demo/