Skip to content
Edit this page

v0.1.0 · CPU · Apple MPS · CUDA · ROCm

Sliced inference that stays on the GPU

Run any detector on 4K and 8K drone, aerial, satellite and CCTV frames without shrinking them. EASI cuts the frame on the GPU, detects overlapping tiles in batches, and merges objects cut by a tile edge back into one box.

pip install easi-cv

Get started API reference Benchmarks Try on Colab

43 FPSon 4K, yolo11n, RTX 3090

2.3xfaster than Ultralytics' tiling

up to 5xfaster than SAHI

Animation: first the result, two partial boxes for one car and then one fused box; then how it happens: the frame cut into overlapping tiles, two neighbouring tiles A (red) and B (dark red), a zoom onto the car on their overlap, what each tile sees, and the two pieces fused into one box

Same frame, same detector. The car is wider than the tile overlap, so two tiles each see a part of it: standard tiling and NMS keep two partial boxes, EASI merges them into one.

The problem it solves

Your 4K camera sees the car. Your detector may not. A 4K frame holds 8.3 million pixels; resized for a 640 px detector, about 230 thousand are left, and a 30 px car shrinks to 5 px. Sliced inference (SAHI, Akyon et al., ICIP 2022) wins those pixels back by running the detector on overlapping tiles. But dozens of tiles take time, and anything lying on a tile edge comes out in pieces. EASI is built for both.

One car cut by a tile seam: tiled NMS keeps two partial boxes, one per tile; EASI fuses them into one box. YOLO11n, 640 px tiles with 20% overlap, other detections hidden

The same car in both panels. Photo: Tyrone Madera, Wikimedia Commons, CC BY-SA 4.0; cropped, tiles and boxes added.

  • Cut on the GPU, stay on the GPU


    Tiles are cropped from the frame tensor in batches and stay on the device until detection is done: 23.0 ms for a 4K frame (yolo11n, FP16, RTX 3090).

  • One car, one box


    A piece cut by a tile edge merges only with a box from another tile that continues past the cut, so two cars parked bumper-to-bumper on a seam stay two cars.

  • Bring your own detector


    Ultralytics (YOLO, RT-DETR, TensorRT/ONNX exports), torchvision, Hugging Face Transformers, or any callable.

How it compares

EASI obss/sahi supervision Ultralytics tile
Tiled inference on a frame already on the GPU yes no no no
Tiles in batches yes yes yes yes
Seam-aware handling of cut objects yes no no partial
Plug in any detector as a plain callable yes partial yes no

What "partial" means and which versions were checked: methods.

Frames per second (higher is better) at three frame sizes, and the time for one 4K frame (lower is better). yolo11n, same weights, tiles and batch size in every library.

EASI155 fps
supervision59 fps
Ultralytics tile59 fps
obss/sahi31 fps

EASI43 fps
Ultralytics tile19 fps
supervision18 fps
obss/sahi8.8 fps

EASI9.5 fps
Ultralytics tile5.0 fps
supervision4.6 fps
obss/sahi2.2 fps

EASI23.0 ms
Ultralytics tile51.9 ms
supervision54.6 ms
obss/sahi113.6 ms

Setup and full tables under Benchmarks.

Runs on the GPU you have

Platform GPU One 4K frame, yolo11n Compared with
NVIDIA CUDA RTX 3090 23.0 ms (FP16) 51.9 ms for Ultralytics tiling
AMD ROCm Radeon RX 9070 XT 41.8 ms (FP16) 64.4 ms for Ultralytics tiling
Apple MPS M3 Pro 169 ms (FP32) 210 ms for Ultralytics tiling

Setup and full tables: AMD, Apple, all results.

Two calls to a result

import easi

det = easi.predict("drone_4k.jpg", "yolo11n.pt")  # CUDA → MPS → CPU
det.boxes, det.scores, det.labels, det.names
det.to_supervision()  # or det.to_coco(image_id=1)
from easi import EASI, UltralyticsAdapter, load_image

detector = UltralyticsAdapter("yolo11n.pt", conf=0.25)  # FP16 on CUDA by default
engine = EASI(slice_size=640, overlap_ratio=0.2, batch_size=8)  # the defaults
det = engine.predict(load_image("frame.jpg", "cuda"), detector)
# from sahi.predict import get_sliced_prediction
from easi.compat import get_sliced_prediction

result = get_sliced_prediction("image.jpg", detection_model, slice_height=640, slice_width=640)

Works with

Backend Pass as model
Ultralytics YOLO / RT-DETR "yolo11n.pt", "rtdetr-l.pt", or an export such as "yolo11n.engine"
torchvision "torchvision:fasterrcnn_resnet50_fpn_v2"
Hugging Face Transformers "hf:PekingU/rtdetr_r50vd"
Your own model any callable: [B, 3, h, w] in, B tuples of (boxes, scores, labels) out

Where to go next

  • Installation


    pip install easi-cv, the extras, and the setup the benchmarks ran with.

    Install

  • Options and evidence


    Every option measured for v0.1.0, with the numbers behind it.

    Options

  • API reference


    easi.predict, the EASI engine, adapters, detections and post-processing.

    Reference

  • Migrate from SAHI or supervision


    Only the slicing and merging step changes; drop-in snippets.

    Migrate

  • Benchmarks


    Speed and accuracy against obss/sahi, supervision and Ultralytics tiling.

    Results

  • Threads and streams


    What is safe to share between threads, and one engine per video stream.

    Threads