← All models · YOLOS-Tiny · SlimSAM

use case · multi-model

YOLOS × SlimSAM: detect, then segment

Compose two lightweight models into one flow. YOLOS-Tiny answers "what's here and roughly where" with labelled boxes; 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 — together under 80 MB, 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

YOLOS'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. The same pattern generalises: detect → segment → classify the crop, or detect → segment → cut out and recompose.

← Wild · YOLOS-Tiny · SlimSAM →