← All models · RT-DETR · SlimSAM

use case · multi-model

RT-DETR × SlimSAM: detect, then segment

Compose two models into one flow. RT-DETR answers "what's here and roughly where" with labelled boxes, fast; then you tap the object you care about and SlimSAM answers "which exact pixels" with a precise mask. Detection gives the semantics, segmentation gives the silhouette — both entirely on your device.

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

Detected objects — pick one to segment:

Run detection to list objects.

SlimSAM encodes the image once (in parallel with detection); tapping a box just runs the light mask decoder at that object's centre. All inference is in Web Workers — one per model.

How the two connect

RT-DETR's output is a list of boxes with class labels. Each box's centre is a natural point prompt for SAM: "segment whatever is here." That is the entire bridge — no shared weights, no retraining, just one model's output becoming another's input. Because RT-DETR is real-time, this pattern extends to video: detect → segment → cut out, frame by frame.

← Wild · RT-DETR · SlimSAM →