BiRefNet · background removal
Cut a product, logo or person out of a photo: a transparent PNG whose opaque pixels are the source pixels, plus the matte.
Discover · Wavemaker catalog
When to use it
- Transparent PNG packshots from product photos.
- Logo intake for watermarks from an opaque upload.
- Pixel-exact packaging composited into a generated scene.
- People cutouts for layouts and thumbnails.
What you provide
- One owned still bound to source.image; optionally matte.model (BiRefNet-general, BiRefNet-portrait, BiRefNet-HR-matting, Lucida).
What you get
- save_cutout: RGBA PNG at the source size.
- save_matte: greyscale alpha PNG.
Creative guidance
- Deterministic background removal: products, packshots, logos on opaque backgrounds, people. Outputs node save_cutout (RGBA PNG: the source pixels with the predicted alpha; with refine_foreground=false every opaque pixel is byte-identical to the source, so labels and logos stay exact) and save_matte (greyscale alpha). Bind inputs.media {"source.image": sha256}; choose the engine with inputs.bindings {"matte.model": ...}: BiRefNet-general (products, logos; default), BiRefNet-portrait (people), BiRefNet-HR-matting (hair, fur, soft edges; see birefnet-matting), Lucida (glass, transparent and glowing objects). wm://graph/model-rmbg2-cutout runs BRIA RMBG-2.0 instead. Limits: removes cast shadows (add a contact shadow when compositing); glass keeps the old background seen through it unless you pick Lucida/HR-matting, and even then the RGB is not unmixed; it keeps every salient subject (no prompt, use regional masks to pick one). Matte runs at 1024 px (HR models 2048) and is resized to the source size. Runs on the birefnet T4 variants (one T4, ~1 GB VRAM). Staging 2026-10-19: a still billed 37-43 T4 GPU-seconds on a cold worker (cold start ~30-40 s dominates; warm inference 1-3 s), a 5 s 1080p clip 127 GPU-seconds. Production T4 rate 0.0711 credits/s (compute book 2026-10-19); production 2026-10-22 billed 6.6 T4 s for a 768 px still (0.5 credits) and 15.6 s for a 1 s 384 px clip (1.1 credits). Guide: examples/image-matting/README.md.
Setup and requirements
- Runtime: comfy. Load the listed model weights and node dependencies.
Things to know
- Cast shadows are removed; add a contact shadow when you composite.
- Keeps every salient subject; it takes no prompt, so pick one subject with a regional mask.
- Glass keeps the old background seen through it; Lucida gives partial alpha but does not unmix the colour.
- Runs on one T4: about 40 GPU-seconds per still on a cold worker (startup dominates), 1-3 s warm.
Example brief
Cut the bottle out of this photo as a transparent PNG so I can place it in the new scene with its label untouched.
Source licenses and model terms continue to apply. Check runtime availability before generation.
Download source · Learn how to reuse resources