Basics · Background Replacement & Alpha Feather Studio · 98.5 MB CPU WASM fp16

Background Replacement & Alpha Feather / Threshold Studio

Once cached, studioludens/birefnet-lite-512 auto-initialises with zero extra downloads. Swap studio backdrops or your own background photo, and dial logit threshold, separable alpha feathering, sigmoid slope, and matte inversion in real time.

1. Subject & Backdrop Compositor

Drop a photo here or paste (Ctrl/⌘+V). Threshold, feather, and backdrop updates re-composite instantly from cached 512×512 saliency logits.

Checking local cache for BiRefNet-lite 512…

Backend–
Infer Latency–
Logit Range–
Foreground Area–
Soft-Edge Band–
Active Feather1 px
BackdropStudio Indigo
Tensor NaN Count–

Live Replaced-Background Composite

Subject: Domestic Cat Backdrop: Studio Indigo

Refined Alpha Matte (Threshold + Separable Feather)

Continuous 0..255 alpha (512×512)

Show the code

Show the code — birefnet-core.mjs: applyThresholdAndFeather() (threshold bias + O(W·H) separable feather)