Skip to content
Edit this page

How we measure

Methods

How every number on this page was measured. This section is fixed text, written before the final run; every number on the page is copied by scripts/make_results.py from the run's JSON files.

One run, one commit. Every result comes from one benchmark run on one frozen commit; the script refuses files from more than one commit. The commit, GPU, CPU and package versions are listed at the top of this page.

Same inputs for every library. EASI, obss/sahi, supervision and Ultralytics' own tiled inference run the same weights, tile size, overlap, confidence threshold, network input size and tiles per batch. The page records the precision each library actually ran in (FP16 or FP32), read from the model after the run, and the run stops at its start if any library is not in FP16 in an FP16 setting (speed-check-fp16).

Ultralytics' own tiling (ultralytics-tile, model.predict(tile=...), ultralytics 8.4.204+). Its windows are the same 640 px (or 320 px) grid at 20% overlap as the others (checked in the tests). The published rows used 8.4.207, whose overlap is fixed at 20%. Newer releases (8.4.218 checked) take tile_overlap, which the harness now passes; it skips an overlap where their window step would differ by a pixel. It drops fragments cut by a window edge that another window sees whole, then runs one NMS. Two rows: IoU 0.7 (the per-tile NMS every library uses) and :iou0.5 (its newer default, and the merge threshold of obss/sahi and supervision). Its detection cap applies to the whole image after merging, so it gets 500, the evaluation's own cap. Ultralytics models only. No library gets a full-frame pass or test-time augmentation unless a row says so (EASI's accuracy mode, +full / +flip, is opt-in and always shown as a separate method).

obss/sahi's merge. Its default merge is GreedyNMM, but at confidence thresholds below 0.1 it switches to NMS on IoU by itself. The accuracy runs use 0.05, so the headline, the side-by-side table and the charts show its NMS score. The sahi and sahi+full rows in the detailed accuracy tables force GreedyNMM (force_postprocess_type); sahi:nms-iou is the NMS run. Its timings are from the speed runs at 0.25, where GreedyNMM is its default and merging is a small part of the time. No NMS run was made with 320 px tiles or on SODA-D: obss/sahi's scores there are its forced GreedyNMM merge.

Speed (benchmarks/speed.py).

  • One 4000 px photo (dodger_lot_4000.jpg), resized to each resolution (1080p, 4K, 8K).
  • Each method runs 2 warm-up calls that are not timed. The warm-up covers CUDA context setup, cuDNN autotuning and EASI's one-time CUDA graph build (compile="auto"). Then 10 timed calls for the main YOLO speed runs (yolo11n and yolo11s, every headline number), or 5 for the slower or secondary models (larger YOLO sizes, RT-DETR, torchvision, Hugging Face).
  • Each call is timed as wall-clock time with a CUDA synchronize at the end, so all queued GPU work is counted. The page reports the median and p95, and FPS = 1000 / median ms.
  • What a call includes:
    • easi[vram]: the frame is already a tensor on the GPU, as from a GPU video decoder or camera pipeline. The call is slicing, inference and fusion.
    • easi[host]: the frame starts as a NumPy array in CPU memory; the upload to the GPU is included.
    • sahi, supervision and ultralytics-tile: the frame starts as a NumPy array in CPU memory (RGB for sahi, BGR for supervision and Ultralytics, each library's expected order). The call includes everything the library does with it: cropping, moving tiles to the GPU, inference and merging.
    • No method includes reading or decoding the image file.
  • The page also reports peak CUDA memory, the number of output boxes and a per-stage breakdown. EASI stages are measured with CUDA events on separate runs, so they do not slow the timed calls. sahi stages are its own durations_in_seconds.

Accuracy (benchmarks/accuracy.py).

  • COCO AP / AP50 with pycocotools on VisDrone2019-DET val and test-dev, plus DOTA.
  • Up to 500 detections per image, as in the official VisDrone toolkit. Confidence threshold 0.05 for AP, the same for every method.
  • COCO-trained models are scored on the VisDrone classes they can name, matched by class name: person ← pedestrian + people, car ← car + van, bicycle, motor, bus, truck. Tricycles, "others" and VisDrone's ignored regions are ignore regions, so detections there count as neither hits nor false positives.
  • VisDrone-fine-tuned models are scored on all 10 VisDrone classes; chart and table labels call this VisDrone10. AP on VisDrone10 and on the COCO-nameable classes ("VisDrone val") is not comparable.
  • Precision, recall and F1 are reported at IoU 0.5 and confidence 0.3, a typical deployment threshold.
  • Two DOTA rows are missing on purpose: supervision with RT-DETR-L and with FCOS. Both runs were killed by the operating system part-way (exit code -9), as in the earlier run where the cause was the machine's RAM limit: DOTA images are up to about 4,000 px and these two models return many boxes per tile. The rows are left out, not estimated; the other libraries' rows for those models are complete.

Seam AP. AP counted only on objects that a tile edge cuts, meaning some tile sees part of the object but not all of it. Every other object becomes an ignore region. Seam AP isolates the step where fusion matters: merging the pieces of one object cut by tile edges.

Confidence intervals (benchmarks/paired_bootstrap.py).

  • AP differences between two fusion variants are computed on the same cached tile detections, so only the fusion step differs.
  • Images are resampled with replacement 200 times, the same resample for both variants. The interval is the 2.5th to 97.5th percentile of AP(b) − AP(a).
  • A difference counts as real only when its 95% interval excludes 0.
  • The "default" variant is the library's own fuse() with no options (v0.1.1-default); a test keeps the script's default equal to it.

Notes on the other libraries' settings. Each library runs with its best setting for a GPU, and these are the settings we tried and did not use, so nobody has to rediscover them:

  • supervision InferenceSlicer(thread_workers=N): with one shared model on one GPU, more threads make it much slower, not faster (seconds per frame at 4K and 8K). Its own docstring says so: for GPU models use batch_size > 1 with thread_workers=1. Ultralytics also serializes predict() with a lock, so the threads only take turns. The tables use thread_workers=1 with batching; the threaded timings (supervision[threads8]) stay in the raw speed files only.
  • Ultralytics FP16: in recent 8.4 releases half=True set through a model's overrides is ignored (the model runs FP32); only predict(..., half=True) or quantize=16 turns FP16 on. Every library's precision is read back after the run and checked (speed-check-fp16).
  • Ultralytics 8.4.208 changed the default predict() NMS IoU from 0.7 to 0.5. The benchmark passes the IoU explicitly and pins the package versions.

What was not tuned on the test data. Every fusion setting was chosen on VisDrone train caches and only confirmed on val and test-dev; nothing was tuned on test-dev.

Feature comparison

The README's "How it compares" table. Partial: Ultralytics drops a cut fragment when another window sees the object whole, then runs NMS; sahi takes a custom detector through a model subclass. sahi (GreedyNMM, its default) and supervision (optional NMM) can also merge boxes, without looking at tile edges. Ultralytics' plain predict() takes a GPU tensor whose sides are divisible by 32, but its tiled inference (tile=, 8.4.204+) rejects tensors. Features were checked against sahi 0.12.8 and supervision 0.31.0; the benchmarks ran sahi 0.14.0, supervision 0.31.6 and ultralytics 8.4.207.