Skip to content
Edit this page

Fusion ablation on VisDrone: fixing seam fusion beyond YOLO (2026-10-20)

The RTX 3090 run of 2026-10-19 showed the old default, seam_wbf, beating NMS on three of eight detectors (YOLO11n/s, Faster R-CNN) and losing on five (RetinaNet, FCOS, RT-DETR-L, Hugging Face RT-DETR, DETR; up to −3.8 AP on FCOS). This ablation finds why and fixes it.

Method

  • Raw tile detections cached once per model with benchmarks/cache_detections.py (EASI.predict_raw, before any fusion) on a rented RTX 3090 (Vast.ai, torch 2.14.1+cu132, commit 87a9896). Same settings as accuracy.py: 640 px tiles, 0.2 overlap, conf 0.05, imgsz 640, at most 300 detections per tile, COCO classes mapped to VisDrone by name.
  • Fusion variants scored from the cache with benchmarks/fusion_ablation.py (CPU, COCO AP, maxDets 500). Replaying the cache reproduces the full GPU harness: on val, nms and seam_wbf match the 2026-10-19 run to four decimals for every model except Hugging Face RT-DETR (seam_wbf 0.2056 vs 0.2059).
  • Chosen on train, reported on val. Train: 498 images (every 13th of the 6,471 in VisDrone2019-DET-train, so the subset spans the video sequences). Val: all 548 images. The choice was written down before val was run:
# Fusion choice, fixed on VisDrone train before any val run

Date: 2026-10-20T09:15:34Z
Chosen: tile_nms+seam_wbf+max+rel+seam>=0.5
  = fuse(mode="seam_wbf", per_tile_nms=True, score_mode="max", min_relative_score=0.5, seam_min_score=0.5)
Criterion: highest worst-case AP gain over nms across the 8 models, then highest mean.
Train (498 images, every 13th): mean +0.63 AP, worst +0.51 (ablation-train-2.json).
Val is evaluated once, with every variant, after this file was written.

Diagnosis

The old seam_wbf = seam fusion of cut-off fragments, then WBF over all boxes with the mean member score. YOLO and Faster R-CNN de-duplicate their own output, so WBF only met real cross-tile duplicates. Dense one-stage detectors (FCOS, RetinaNet) and DETR-style models emit many weak near-duplicates; mean scoring turned a 0.9 box with four 0.05 neighbours into one 0.22 box, and weak fragments joined by seam fusion widened confident boxes from the next tile. The ablation isolates three changes:

  1. per_tile_nms: NMS within each tile first, so fusion only ever combines views from different tiles.
  2. score_mode="max", min_relative_score=0.5: the fused score is the strongest member's, and members below half of it do not pull the box.
  3. seam_min_score=0.5: only confident boxes take part in seam fusion; weak ones go to the final step unchanged.

These are now the defaults of fusion_mode="seam_wbf".

Result on val (548 images), AP

model nms old seam_wbf new seam_wbf new − nms (×100) AP_small nms AP_small new
detr-resnet-50@no_timm 0.1212 0.1068 0.1275 +0.63 0.0460 0.0495
torchvision:fasterrcnn_resnet50_fpn_v2 0.2145 0.2197 0.2227 +0.82 0.1385 0.1444
torchvision:fcos_resnet50_fpn 0.1318 0.0939 0.1393 +0.75 0.0740 0.0760
torchvision:retinanet_resnet50_fpn_v2 0.1383 0.1311 0.1457 +0.74 0.0767 0.0790
rtdetr:rtdetr-l.pt 0.2131 0.2002 0.2192 +0.61 0.1276 0.1289
rtdetr_r50vd 0.2163 0.2056 0.2250 +0.87 0.1351 0.1369
yolo11n.pt 0.1297 0.1336 0.1385 +0.88 0.0633 0.0674
yolo11s.pt 0.1745 0.1828 0.1852 +1.07 0.0879 0.0924

The new default beats NMS on all eight detectors on val.

Against the other libraries, same weights and settings, from the 2026-10-19 RTX 3090 run (supervision InferenceSlicer with NMS; obss/sahi with postprocess_type="NMS", postprocess_match_metric="IOU", its best setting on these models; all 548 val images):

model supervision obss/sahi NMS+IoU easi nms easi new seam_wbf new − best other (×100)
detr-resnet-50@no_timm 0.1227 0.1208 0.1212 0.1275 +0.48
torchvision:fasterrcnn_resnet50_fpn_v2 0.2167 0.2167 0.2145 0.2227 +0.60
torchvision:fcos_resnet50_fpn 0.1347 0.1347 0.1318 0.1393 +0.46
torchvision:retinanet_resnet50_fpn_v2 0.1400 0.1400 0.1383 0.1457 +0.57
rtdetr:rtdetr-l.pt 0.2138 0.2137 0.2131 0.2192 +0.54
rtdetr_r50vd 0.2181 0.2181 0.2163 0.2250 +0.69
yolo11n.pt 0.1295 0.1295 0.1297 0.1385 +0.90
yolo11s.pt 0.1761 0.1761 0.1745 0.1852 +0.91

Those baselines are within 0.0029 AP of easi nms on every model.

Full tables: AP minus nms (×100)

Train, first round (12 variants fixed in advance):

AP minus nms, per model (×100), and mean over models | variant | detr-resnet-50@no_timm | torchvision:fasterrcnn_resnet50_fpn_v2 | torchvision:fcos_resnet50_fpn | torchvision:retinanet_resnet50_fpn_v2 | rtdetr:rtdetr-l.pt | rtdetr_r50vd | yolo11n.pt | yolo11s.pt | mean | min | |---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:| | nms | +0.00 | +0.00 | +0.00 | +0.00 | +0.00 | +0.00 | +0.00 | +0.00 | +0.00 | +0.00 | | wbf | -1.25 | -0.09 | -1.69 | +0.37 | -2.27 | -1.74 | -0.19 | -0.34 | -0.90 | -2.27 | | seam_wbf | -1.36 | +0.24 | -3.47 | -0.63 | -2.68 | -1.73 | +0.35 | +0.49 | -1.10 | -3.47 | | seam_nms | -0.26 | +0.21 | -1.49 | -0.66 | -0.23 | +0.00 | +0.51 | +0.70 | -0.15 | -1.49 | | wbf+max | +0.05 | -0.07 | -0.70 | +0.15 | -0.54 | -0.36 | +0.03 | -0.11 | -0.19 | -0.70 | | seam_wbf+max | -0.19 | +0.33 | -2.12 | -0.61 | -0.48 | -0.08 | +0.57 | +0.75 | -0.23 | -2.12 | | seam_wbf+max+rel | -0.15 | +0.34 | -1.65 | -0.56 | -0.22 | +0.06 | +0.57 | +0.78 | -0.11 | -1.65 | | tile_nms+wbf+max+rel | +0.08 | -0.07 | +0.07 | +0.18 | -0.29 | -0.25 | +0.04 | -0.12 | -0.05 | -0.29 | | tile_nms+seam_nms | +0.04 | +0.21 | -0.82 | -0.66 | +0.03 | +0.28 | +0.59 | +0.79 | +0.06 | -0.82 | | tile_nms+seam_wbf | +0.01 | +0.24 | -0.91 | -0.63 | -0.14 | +0.16 | +0.54 | +0.67 | -0.01 | -0.91 | | tile_nms+seam_wbf+max | +0.20 | +0.33 | -0.76 | -0.60 | +0.05 | +0.30 | +0.65 | +0.82 | +0.12 | -0.76 | | tile_nms+seam_wbf+max+rel | +0.19 | +0.34 | -0.75 | -0.56 | +0.06 | +0.32 | +0.66 | +0.83 | +0.14 | -0.75 |

Train, second round (seam score threshold, added after the first round showed FCOS and RetinaNet still losing with seam fusion):

AP minus nms, per model (×100), and mean over models | variant | detr-resnet-50@no_timm | torchvision:fasterrcnn_resnet50_fpn_v2 | torchvision:fcos_resnet50_fpn | torchvision:retinanet_resnet50_fpn_v2 | rtdetr:rtdetr-l.pt | rtdetr_r50vd | yolo11n.pt | yolo11s.pt | mean | min | |---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:| | nms | +0.00 | +0.00 | +0.00 | +0.00 | +0.00 | +0.00 | +0.00 | +0.00 | +0.00 | +0.00 | | tile_nms+seam_wbf+max+rel | +0.19 | +0.34 | -0.75 | -0.56 | +0.06 | +0.32 | +0.66 | +0.83 | +0.14 | -0.75 | | tile_nms+wbf+max+rel | +0.08 | -0.07 | +0.07 | +0.18 | -0.29 | -0.25 | +0.04 | -0.12 | -0.05 | -0.29 | | tile_nms+seam_wbf+max+rel+seam>=0.1 | +0.28 | +0.50 | -0.73 | +0.06 | +0.49 | +0.55 | +0.68 | +0.85 | +0.33 | -0.73 | | tile_nms+seam_wbf+max+rel+seam>=0.25 | +0.50 | +0.64 | +0.30 | +0.64 | +0.61 | +0.68 | +0.68 | +0.85 | +0.61 | +0.30 | | tile_nms+seam_wbf+max+rel+seam>=0.5 | +0.51 | +0.69 | +0.57 | +0.69 | +0.57 | +0.66 | +0.62 | +0.75 | +0.63 | +0.51 | | tile_nms+seam_nms+seam>=0.1 | +0.13 | +0.41 | -0.80 | -0.04 | +0.43 | +0.51 | +0.63 | +0.80 | +0.26 | -0.80 | | tile_nms+seam_nms+seam>=0.25 | +0.36 | +0.52 | +0.23 | +0.57 | +0.54 | +0.65 | +0.62 | +0.82 | +0.54 | +0.23 | | tile_nms+seam_nms+seam>=0.5 | +0.37 | +0.58 | +0.49 | +0.61 | +0.54 | +0.66 | +0.57 | +0.73 | +0.57 | +0.37 |

Val, all variants, run once after the choice:

AP minus nms, per model (×100), and mean over models | variant | detr-resnet-50@no_timm | torchvision:fasterrcnn_resnet50_fpn_v2 | torchvision:fcos_resnet50_fpn | torchvision:retinanet_resnet50_fpn_v2 | rtdetr:rtdetr-l.pt | rtdetr_r50vd | yolo11n.pt | yolo11s.pt | mean | min | |---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:| | nms | +0.00 | +0.00 | +0.00 | +0.00 | +0.00 | +0.00 | +0.00 | +0.00 | +0.00 | +0.00 | | wbf | -1.75 | +0.01 | -2.35 | +0.21 | -1.66 | -1.80 | -0.28 | -0.34 | -0.99 | -2.35 | | seam_wbf | -1.44 | +0.52 | -3.79 | -0.73 | -1.29 | -1.07 | +0.39 | +0.83 | -0.82 | -3.79 | | seam_nms | +0.14 | +0.39 | -1.28 | -0.77 | +0.41 | +0.70 | +0.71 | +1.02 | +0.16 | -1.28 | | wbf+max | +0.08 | -0.05 | -0.68 | -0.01 | -0.50 | -0.31 | +0.06 | -0.01 | -0.18 | -0.68 | | seam_wbf+max | +0.29 | +0.54 | -1.97 | -0.73 | +0.25 | +0.53 | +0.81 | +1.17 | +0.11 | -1.97 | | seam_wbf+max+rel | +0.32 | +0.54 | -1.45 | -0.69 | +0.43 | +0.72 | +0.83 | +1.18 | +0.23 | -1.45 | | tile_nms+wbf+max+rel | +0.11 | -0.06 | +0.05 | +0.03 | -0.39 | -0.23 | +0.09 | -0.07 | -0.06 | -0.39 | | tile_nms+seam_nms | +0.29 | +0.39 | -0.57 | -0.77 | +0.48 | +0.70 | +0.79 | +1.05 | +0.29 | -0.77 | | tile_nms+seam_wbf | +0.18 | +0.52 | -0.59 | -0.73 | +0.35 | +0.69 | +0.76 | +1.10 | +0.29 | -0.73 | | tile_nms+seam_wbf+max | +0.50 | +0.54 | -0.64 | -0.73 | +0.44 | +0.68 | +0.91 | +1.19 | +0.36 | -0.73 | | tile_nms+seam_wbf+max+rel | +0.50 | +0.54 | -0.55 | -0.69 | +0.46 | +0.70 | +0.91 | +1.18 | +0.38 | -0.69 | | tile_nms+seam_wbf+max+rel+seam>=0.1 | +0.53 | +0.67 | -0.54 | +0.11 | +0.54 | +0.80 | +0.93 | +1.19 | +0.53 | -0.54 | | tile_nms+seam_nms+seam>=0.1 | +0.32 | +0.50 | -0.56 | +0.03 | +0.56 | +0.79 | +0.82 | +1.07 | +0.44 | -0.56 | | tile_nms+seam_wbf+max+rel+seam>=0.25 | +0.58 | +0.80 | +0.41 | +0.71 | +0.64 | +0.86 | +0.92 | +1.21 | +0.77 | +0.41 | | tile_nms+seam_nms+seam>=0.25 | +0.36 | +0.65 | +0.41 | +0.64 | +0.68 | +0.86 | +0.81 | +1.07 | +0.68 | +0.36 | | tile_nms+seam_wbf+max+rel+seam>=0.5 | +0.63 | +0.82 | +0.75 | +0.74 | +0.61 | +0.87 | +0.88 | +1.07 | +0.80 | +0.61 | | tile_nms+seam_nms+seam>=0.5 | +0.41 | +0.65 | +0.77 | +0.68 | +0.65 | +0.87 | +0.77 | +0.91 | +0.71 | +0.41 |

Caveats

  • seam_min_score is an absolute score. 0.5 suits these COCO-trained detectors; for detectors whose scores run low, lower it (EASI(seam_min_score=...)).
  • One dataset (VisDrone). The gains (+0.6 to +1.1 AP over NMS on val) should be checked on a second one, e.g. xView, before being generalised.
  • Fusion speed with the new defaults is not measured yet (tile_nms adds one batched NMS call per frame); it will be in the next GPU speed run.