Remove Background: BiRefNet

Cut a subject out of a still with BiRefNet and keep a soft alpha edge - no prompt, no colour key, one image in and one RGBA image out.

Input

The picture whose subject should be kept.

Output
Output
Example

Try an example

About this workflow

BiRefNet is a dichotomous segmentation model: it predicts a subject mask at high resolution and then refines the boundary, which is why hair, fur and translucent edges survive the cut instead of being chopped to a hard outline. There is nothing to prompt - the image goes in and a matte comes back - so it is the dependable first step for product shots, portraits and anything that has to be re-composited. The mask is inverted and joined back onto the source as an alpha channel, ready for the next layer.

Graph: LoadImage -> LoadBackgroundRemovalModel (birefnet) -> RemoveBackground -> InvertMask -> JoinImageWithAlpha -> PreviewImage (RGBA png), with a mask preview alongside.