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.
Camera frames stay strictly on your device. Capture a snapshot to detect objects.
Camera idle.
Loading a curated sceneβ¦
Select a box to inspect its query rank and coordinates.
Confidence calibration histogram (all candidates β₯ 0.15)
| Class | Group | Count | Best score | Mean score | Frame area |
|---|---|---|---|---|---|
| Run the detector to populate class counts. | |||||
| 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
Basics
Compare Objects365-pretrained metrics, run top-K query selectivity ablations (K=10..300), and inspect aspect/scale breakdowns.
Practical
FIFO batch scene audit across multiple images with mid-batch Cancel, area coverage %, target checklists, and CSV/JSON export.
Wild
Stress-test R101vd's 300 queries against scale, border crop, occlusion, blur, low light, and JPEG blockiness with live IoU drift.
Multi-model
Run RT-DETR R101vd (O365) side-by-side against sibling RT-DETR R50vd on the identical frame to measure live IoU & recall gain.