Nodes/ComfyUI-RemoveBackground_SET/Get background mask low level
ComfyUI Node

Get background mask low level

Computes the foreground mask. No pre or post processing is applied, you must do it outside the node. See the `Get background mask` node

By set-soft·Created 12 months ago·Updated 8 months ago· 18
Get background mask low level
  • model
  • images
  • depths
  • masks
  • depths
  • edges
batch_size1
out_dtypeAUTO
CategoryRemBG_SET/Advanced

Inputs (5)

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, they must be normalized to a range that is good for the model. Their size must be similar to the size used to train the model.
batch_sizeINT11–256How many images to process at once
depthsoptMASKFor models that starts with a depth map
out_dtypeoptCOMBOAUTOData type used for the outputs. `AUTO` means the same as the input.Using `float16` can help when processing videos.

Outputs (3)

NameTypeDescription
masksMASKThe estimated masks, where a higher value means the model estimates it belongs to the foreground with more confidence.
depthsMASKThe estimated depth map. Either from the `depths` input or computed. Note this applies only to PDFNet. This is the map generated by `Depth Anything V2`
edgesMASKThe estimated edges. This is only generated by the DiffDIS model.