Skip to content
Edit this page

Cross-check: the harness vs Ultralytics' own tiled validation (2026-11-12)

Question: does the accuracy harness score Ultralytics' native tiling (predict(tile=...), ultralytics 8.4.207) fairly? Ultralytics' val(tile=...) tiles, merges and scores by itself, so it is an independent reference.

Setup: fine-tuned yolo11s (bench_runs/assets/yolo11s-visdrone-tiles.pt), VisDrone val (548 images), 640 px tiles at 640 px input, conf 0.05, NMS IoU 0.7, 500 boxes per image: the harness's settings. Each val run saved its predictions, which the harness's COCO evaluation then scored. Script: benchmarks/ultralytics_val_check.py; results: bench_runs/ultralytics_val_check/.

Predictions Ultralytics mAP50-95 harness COCO AP boxes
Ultralytics val(tile=640), its default multi-label NMS (Apple MPS) 0.3398 0.3453 103,496
Ultralytics val(tile=640), single-label NMS as in predict() (Apple MPS) 0.3281 0.3330 89,147
Harness ultralytics-tile row, predict(tile=640) (RTX 3090) – 0.3324 89,097

Findings:

  1. The harness is fair. With the validator's NMS made single-label, as predict() does it, its predictions score 0.3330 in the harness against the harness's own ultralytics-tile row 0.3324 (box counts 89,147 vs 89,097); the rest is Apple vs NVIDIA numerics.
  2. Ultralytics' validator runs multi-label NMS (multi_label=True: one box may keep several classes), predict() does not. That adds 14,349 boxes and +1.23 AP x100. Ultralytics' val numbers therefore overstate what predict() users get and must not be compared with predict()-based results (EASI's or anyone's).
  3. The metric definitions differ slightly: on the same predictions the harness's COCO AP is +0.48 x100 above Ultralytics' mAP50-95 (pycocotools vs Ultralytics' own integration; the harness also treats VisDrone's ignored regions as crowd, which Ultralytics' labels do not have).
  4. On Apple MPS the validator's NMS time limit trips (2 s + 0.05 s per image in a batch, after which Ultralytics drops the rest of the batch): 14 warnings in the default run, 0 with the limit raised (--nms-time-limit 2). Any val run on MPS must raise it.

Reproduce (needs ultralytics >= 8.4.204; this used 8.4.207 installed apart from the venv):

PYTHONPATH=<ultralytics-8.4.207>:benchmarks python benchmarks/ultralytics_val_check.py \
    --model bench_runs/assets/yolo11s-visdrone-tiles.pt --data data/visdrone/visdrone10.yaml \
    --out bench_runs/ultralytics_val_check [--single-label --nms-time-limit 2]