← All models · D-FINE · ViT

use case · multi-model

D-FINE × ViT: detect, crop, then classify

Compose two models into one flow. D-FINE answers "what objects are here and where" with labelled boxes across 80 COCO classes; then every box is cropped and handed to a ViT image classifier, which names it with a fine-grained label from 1,000 ImageNet categories. So "dog" becomes "golden retriever", "bird" becomes a species — a coarse detector feeding a fine-grained classifier, entirely on your device.

Drop an image, or click to choose
Two cats on a couch A cozy bedroom A riverside at golden hour

Each detected object, classified by ViT:

Run to detect objects and classify each crop.

D-FINE runs once to get the boxes; each box is cropped on a canvas and classified by ViT in its own Web Worker. Both models run locally — nothing is uploaded.

How the two connect

D-FINE's output is a list of boxes with coarse class labels and pixel coordinates. Each box is a ready-made crop: cut it out and it becomes a single-object image — exactly what an image classifier wants. The classifier then adds detail the detector doesn't carry (breed, species, model, variety). No shared weights, no retraining — one model's output is the other's input. Detection localises; classification specialises.

← Wild · D-FINE · ViT →