Nodes/ComfyUI-RMBG/VRMBG (Video Background Removal)
ComfyUI Node Runs on cloud

VRMBG (Video Background Removal)

A ComfyUI node in 🧪AILab/🧽RMBG with 8 inputs and 3 outputs.

By 1038lab·Created 2 years ago·Updated 2 days ago· 2,196
VRMBG (Video Background Removal)
  • images
  • background_color
  • IMAGE
  • MASK
  • MASK_IMAGE
◄reset_statetrue►
◄mask_blur0►
◄mask_offset0►
◄invert_outputfalse►
◄unload_modelfalse►
◄backgroundAlpha►
Category🧪AILab/🧽RMBG

Inputs (8)

NameTypeDefaultDescription
imagesIMAGEBatch of consecutive video frames [B, H, W, C] for temporal background removal.
reset_stateoptBOOLEANtrueReset temporal prior state at the beginning of this batch. Keep True for standalone clips, or False when feeding consecutive chunks.
mask_bluroptINT00–64Gaussian blur radius for softening mask edges.
mask_offsetoptINT0-64–64Expand (positive) or shrink (negative) the mask boundary in pixels.
invert_outputoptBOOLEANfalseInvert the output mask.
unload_modeloptBOOLEANfalseUnload model weights from VRAM immediately after execution.
backgroundoptCOMBOAlphaOutput format: Alpha for transparent cutout, or Color to composite against solid background.
background_coloroptCOLORCODE#222222Hex background color used when background mode is set to Color.

Outputs (3)

NameTypeDescription
IMAGEIMAGE—
MASKMASK—
MASK_IMAGEIMAGE—