Nodes/ComfyUI_StarNodes/⭐ Star Lucida RMBG
ComfyUI Node

⭐ Star Lucida RMBG

Background removal with Lucida (BiRefNet fine-tune by egeorcun). Keeps glass/transparency, camouflage, text, glow and line art. Model auto-downloads from HuggingFace on first use.

By Starnodes2024·Created 2 years ago·Updated 7 days ago· 103
⭐ Star Lucida RMBG
  • image
  • rgba_image
  • mask
refinefalse
decontaminatetrue
dtypefp32
deviceauto
Category⭐StarNodes/Image And Latent

Inputs (5)

NameTypeDefaultDescription
imageIMAGEInput image (batches processed one by one)
refineBOOLEANfalseEdge-refinement pass: re-runs the model on the uncertain alpha band at higher effective resolution. Slower, sharper edges.
decontaminateBOOLEANtrueClean background colour spill from the RGB channels of the cut-out (uses pymatting if installed, otherwise a built-in nearest-colour fallback).
dtypeCOMBOfp32fp32 matches the reference pipeline. bf16/fp16 roughly halve VRAM on GPU. CPU always runs fp32.
deviceCOMBOauto'auto' uses ComfyUI's device.

Outputs (2)

NameTypeDescription
rgba_imageIMAGERGBA cut-out (4-channel IMAGE; save as PNG to keep transparency).
maskMASKAlpha matte as a MASK for compositing.