Nodes/ComfyUI-Pixaroma/Remove Background Pixaroma
ComfyUI Node

Remove Background Pixaroma

Remove an image background with a BiRefNet model and return the cutout (RGBA), the foreground mask, and the inverted mask in one node. Models load from ComfyUI/models/background_removal/. Filename controls preprocessing resolution: 'matt' or 'hr' in the name (case-insensitive) preprocesses at 2048; all others at 1024. Recommended names: birefnet.safetensors (standard), birefnet-hr.safetensors (HR), birefnet-matting.safetensors (HR matting for hair / fur). Downloads: https://huggingface.co/Comfy-Org/BiRefNet/tree/main/background_removal https://huggingface.co/ZhengPeng7/BiRefNet_HR https://huggingface.co/ZhengPeng7/BiRefNet_HR-matting

By pixaroma·Created 5 months ago·Updated 23 days ago· 271
Remove Background Pixaroma
  • image
  • image
  • mask
  • inverted_mask
model
Category👑 Pixaroma/🖼️ Image

Inputs (2)

NameTypeDefaultDescription
imageIMAGEThe image to remove the background from.
modelCOMBOWhich BiRefNet model to use. Filenames containing 'matt' or 'hr' run at 2048px (better for hair / fine edges); all others run at 1024px. Models live in ComfyUI/models/background_removal/.

Outputs (3)

NameTypeDescription
imageIMAGEThe cutout image (RGBA) with the background made transparent.
maskMASKMask where the kept foreground is white.
inverted_maskMASKMask where the removed background is white (the foreground mask, inverted).