Skip to content
use case · basics onnx-community/rtdetr_r101vd_coco_o365 · q8 WASM 300 queries · Top-K ablation Apache-2.0

Inside RT-DETR R101vd: Objects365 Pretraining & Query Selectivity

Examine why Objects365 pretraining plus a 23-block ResNet-101-vd stage-3 backbone improves small-object and cluttered-scene detection, sweep score thresholds, ablate top-K decoder queries (K = 10 to 300) without NMS, and break detections down by COCO scale and aspect geometry.

1 · Objects365 pretraining vs COCO-only baselines (model card)

Published COCO val2017 evaluation metrics from PekingU/rtdetr_r101vd_coco_o365: pretraining on 365 broad object categories lifts small-object APS (+2.3 over COCO-only R101) and overall AP (+1.9) using the identical 76M-parameter inference graph.

RT-DETR model family benchmarks on COCO val2017 (from upstream README)
Checkpoint Params GFLOPs AP AP50 APS APM APL

2 · Run one scene and inspect query selectivity

Loading a curated scene…

Red outlines indicate same-class overlapping pairs above the IoU cut-off.

3 · Score threshold sweep & NMS-free top-K query ablation

Because RT-DETR orders its 300 uncertainty-minimal queries by varifocal confidence, capping to top-10 or top-25 queries preserves almost all high-confidence objects while trimming weak tail clutter. Press any row to apply that threshold or K cap live.

Threshold sweep (0.15 → 0.85)
Threshold Boxes Classes Mean score
Run the model to sweep.
Top-K query ablation (at active threshold)
Top-K Surviving Classes Dupes Mean score
Run the model to ablate top-K.
Show the code — top-K query selectivity ablation over 300 queries

4 · Duplicate-overlap audit (one-to-one matching vs NMS)

Boxes audited–
Same-class pairs–
Cross-class pairs–
Greedy NMS would drop–
Max same-class IoU–

Run the model to audit duplicate pairs.

Overlapping pairs above IoU cut-off
PairKindIoUScoresInspect
No overlapping pairs yet.

5 · Scale & box aspect ratio breakdown

COCO splits objects by pixel area (small < 32², medium < 96², large ≥ 96²). Box aspect ratio separates tall/slender targets (bottles, people, forks) from square or wide boxes (cars, beds, tables).

COCO scale buckets (original-image pixels)
ScaleCountMean scoreClasses
Run the model to inspect scales.
Box aspect ratio buckets
AspectCountMean scoreClasses
Run the model to inspect aspect ratios.
Show the code — box aspect-ratio & scale breakdown