ComfyUI Node

Remove background

Removes or replaces the background from the input image.

By set-soft·Created 12 months ago·Updated 8 months ago· 18
Remove background
  • model
  • images
  • depths
  • background
  • images
batch_size1
out_dtypeAUTO
CategoryRemBG_SET/Basic

Inputs (6)

NameTypeDefaultDescription
modelSET_REMBGThe remove background model from `Load RemBG model by file` or any of the `Load XXXXXX model by name` nodes
imagesIMAGEOne or more images to process, will be scaled to a size that is good for the model.
batch_sizeINT11–256How many images to process at once
depthsoptMASKFor models that starts with a depth map
backgroundoptIMAGEImage to use as background
out_dtypeoptCOMBOAUTOData type used for the outputs. `AUTO` means the same as the input.Using `float16` can help when processing videos.

Outputs (1)

NameTypeDescription
imagesIMAGEThe images with the background removed (transparent) or replaced by the background image