The two stages
Stage 1 Β· RT-DETR R50vd detector
onnx-community/rtdetr_r50vd Β· object-detection Β· WASM q8 Β· 45.46 MB Β· 80 COCO classes, 300 queries, no NMS.
Stage 2 Β· ViT-B/16 crop classifier
Xenova/vit-base-patch16-224 Β· image-classification Β· WASM q8 Β· 88.26 MB Β· 1,000 ImageNet classes at 224Γ224.
Loading a sample photoβ¦
Stage 1 β detect objects
Objects to classify
Stage 2 β classify each crop with ViT-B/16
Load both models and run Stage 1 first.
Stage 2 results appear here, one card per crop.
See inside β why chain a detector and a classifier?
RT-DETR's vocabulary is the 80 COCO categories: it can say dog or car and draw a tight box, but not beagle or cab. ImageNet-1k classifiers know 1,000 fine-grained classes but expect one centred subject per image. Cropping each RT-DETR box (with 8% padding) gives ViT exactly that, so the pair answers "what and where" in about 134 MB of on-device weights.
The agreement badge is a transparent heuristic, not a ground truth: it maps COCO classes to ImageNet index ranges (dogs 151β268, domestic cats 281β285, birdsβ¦) and whole-word keywords. ImageNet-1k has no "person" class, so for people ViT names clothing or context β that is reported as "no ImageNet class", never as an error. A divergent crop is worth a look: it is either a detector false positive or a crop dominated by its surroundings.