Skip to content
Edit this page

Installation

EASI needs Python 3.10 or newer, torch and torchvision.

# torch and torchvision, torchvision models and your own callables
pip install easi-cv
# the setup the benchmarks ran with
pip install "easi-cv[ultralytics,fast]"

Extras

Extra Adds
ultralytics YOLO and RT-DETR weights and exports
transformers Hugging Face detectors ("hf:...")
supervision det.to_supervision(), to keep a supervision pipeline
sahi the obss/sahi package, for using it alongside easi.compat
fast Numba, for the compiled CPU merge: same boxes, less time; one compile of several seconds on first use. NumPy 2.5 needs Numba 0.67 or newer (pip install -U numba)
all everything above

First call

import easi

det = easi.predict("drone_4k.jpg", "yolo11n.pt")  # CUDA → MPS → CPU
det.boxes, det.scores, det.labels, det.names

model can be Ultralytics weights or exports ("yolo11n.pt", "rtdetr-l.pt", "yolo11n.engine"), "torchvision:fasterrcnn_resnet50_fpn_v2", "hf:PekingU/rtdetr_r50vd", a model object, or any callable mapping a [B, 3, h, w] batch to B tuples of (boxes, scores, labels).

Try it without installing

The Colab notebook runs plain YOLO, obss/sahi, supervision and EASI on a VisDrone image on a free T4 GPU, checks every box against the labels, and times each method. A Kaggle version is also available: import it in a Kaggle notebook with a GPU T4 x2 session and Internet on.

Next