← All models · YOLOS-Tiny · SlimSAM
use case · multi-model
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.
Detected objects — pick one to segment:
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.
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.