Skip to content
object-detection Β· vision WASM q8 Β· 79.80 MB ResNet-101-vd Β· Objects365 β†’ COCO 300 queries Β· NMS-free Apache-2.0

RT-DETR R101vd (Objects365 β†’ COCO) β€” Live Detection & Diagnostics Lab

Baidu's flagship RT-DETR-R101vd pairs a deep 101-layer ResNet-vd backbone (depths [3, 4, 23, 3]) pretrained on Objects365 and fine-tuned on 80 COCO classes (56.2 AP / 38.3 APS on COCO val2017). Runs on-device in a Web Worker via Transformers.js 3.7.5 (CPU WASM q8, onnx/model_quantized.onnx, 79.80 MB) β€” photos never leave your browser.

At a glance

Upstream model PekingU/rtdetr_r101vd_coco_o365 (76M params, 259 GFLOPs, 56.2 COCO AP)
Browser ONNX repo onnx-community/rtdetr_r101vd_coco_o365 β†’ onnx/model_quantized.onnx
Pipeline task object-detection (pipeline("object-detection", "onnx-community/rtdetr_r101vd_coco_o365"))
Architecture RTDetrForObjectDetection (rt_detr): ResNet-101-vd [3, 4, 23, 3] β†’ hybrid encoder (encoder_hidden_dim: 384, AIFI + CCFM) β†’ 6-layer decoder (d_model: 256), 300 queries, 640Γ—640 input
Output [{ label, score, box: { xmin, ymin, xmax, ymax } }] β€” 80 sigmoid class logits per query, NMS-free one-to-one Hungarian matching
Quantization & size q8: 79.80 MB (79,800,978 B; fp16 155.63 MB Β· q4 276.78 MB Β· fp32 310.60 MB unused)
Runtime & backend Shared ../../lib/webai.js (Transformers.js 3.7.5) Β· CPU WASM in a module Web Worker
Labels & license 80 COCO classes (sofa, tvmonitor, diningtable, pottedplant, motorbike, aeroplane) Β· Apache-2.0

Live object detection lab

One pass captures all candidate queries scoring β‰₯ 0.15 so confidence thresholding and COCO supercategory filtering update instantaneously on the main thread. Tab or click any box overlay to inspect its exact query rank and pixel bounds.

Loading a curated scene…

Select a box to inspect its query rank and coordinates.

Backend / dtype–
Inference–
Queries β‰₯ 0.15–
Shown–
Classes–
Same-class dupes–
Non-finite–

Confidence calibration histogram (all candidates β‰₯ 0.15)

Per-class counts & area share above threshold
Class Group Count Best score Mean score Frame area
Run the detector to populate class counts.
Query / box inspector (bounded frame pixels)
Query rank Class Score Box [x1, y1, x2, y2] Size (WΓ—H)
No detections yet.

See inside β€” ResNet-101-vd + Objects365 pretraining

Compared with RT-DETR-R50vd (42M params, 45.46 MB q8), RT-DETR-R101vd deepens the stage-3 residual tower from 6 blocks to 23 blocks (76M params, 79.80 MB q8) and keeps a wider encoder_hidden_dim: 384 hybrid encoder across stride-8, stride-16, and stride-32 maps. Pretraining on Objects365 (365 diverse everyday categories, 1.7M+ images) before COCO fine-tuning sharpens small-object and occluded-object query selectivity (+1.9 AP overall over COCO-only R101, and +3.5 APS over COCO-only R50).

Show the code β€” epoch-guarded pipeline load in worker.js
Show the code β€” NMS-free Hungarian duplicate-overlap audit

Use-case ladder

References