BiRefNet · soft matte for hair and fur

A cutout that keeps flyaway hair, fur and soft edges, from BiRefNet HR-matting at 2048 px.

Discover · Wavemaker catalog

When to use it

  • Portrait cutouts with loose hair.
  • Pets and fur.
  • Veils, smoke and other soft edges.

What you provide

  • One owned still bound to source.image.

What you get

  • save_cutout: RGBA PNG.
  • save_matte: greyscale alpha PNG.

Creative guidance

  • Soft-edge matte for hair, fur, veils, smoke and semi-transparent edges: BiRefNet-HR-matting at 2048 px keeps flyaway strands that the general cutout clips. Same outputs and bindings as birefnet-cutout (save_cutout RGBA PNG, save_matte). Edge pixels keep the source colour, so a little of the old background tints fine strands: composite onto a similar tone or accept a light fringe. Glass comes out partly transparent but still carries the old background colour. 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

  • Fine strands keep a tint of the old background colour.
  • Cast shadows are removed; add a contact shadow when you composite.
  • Runs on one T4: about 40 GPU-seconds per still on a cold worker (startup dominates), 1-3 s warm.

Example brief

Cut this person out keeping the loose curls, then put her on a plain studio backdrop.

Source licenses and model terms continue to apply. Check runtime availability before generation.

Download source · Learn how to reuse resources

Related resources