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.
⭐ Star Lucida RMBG
- image
- rgba_image
- mask
◄refinefalse►
◄decontaminatetrue►
◄dtypefp32►
◄deviceauto►
Category⭐StarNodes/Image And Latent
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Input image (batches processed one by one) | |
| refine | BOOLEAN | false | Edge-refinement pass: re-runs the model on the uncertain alpha band at higher effective resolution. Slower, sharper edges. |
| decontaminate | BOOLEAN | true | Clean background colour spill from the RGB channels of the cut-out (uses pymatting if installed, otherwise a built-in nearest-colour fallback). |
| dtype | COMBO | fp32 | fp32 matches the reference pipeline. bf16/fp16 roughly halve VRAM on GPU. CPU always runs fp32. |
| device | COMBO | auto | 'auto' uses ComfyUI's device. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| rgba_image | IMAGE | RGBA cut-out (4-channel IMAGE; save as PNG to keep transparency). |
| mask | MASK | Alpha matte as a MASK for compositing. |