use case · multi-model
BEN2 cuts the subject out; MobileNet v2 then classifies just the subject on a clean backdrop — so the label describes the object, not a busy background. We classify the original photo and the cutout, side by side, to show how removing the background can sharpen a classifier's answer. Two models, composed live.
This page composes two on-device models (~233 MB combined, cached after first load). Each initialises on its own below — a cached copy auto-starts, no button.
BEN2 — background removal
MobileNet v2 — image classification
No WebGPU adapter here — BEN2 runs on WASM, so the matte step can take ~30–60 s. Classification is quick.
The classifier only ever sees pixels the matting model kept. When a photo has a distracting background, isolating the subject first often pushes the right label up the ranking — a simple, real example of composing a segmentation model with a classifier.
← Wild · BEN2 · See also: MobileNet →