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
Get background mask low level
- model
- images
- depths
- masks
- depths
- edges
◄batch_size1►
◄out_dtypeAUTO►
CategoryRemBG_SET/Advanced
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| model | SET_REMBG | The remove background model from `Load RemBG model by file` or any of the `Load XXXXXX model by name` nodes | |
| images | IMAGE | One 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_size | INT | 11–256 | How many images to process at once |
| depthsopt | MASK | For models that starts with a depth map | |
| out_dtypeopt | COMBO | AUTO | Data type used for the outputs. `AUTO` means the same as the input.Using `float16` can help when processing videos. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| masks | MASK | The estimated masks, where a higher value means the model estimates it belongs to the foreground with more confidence. |
| depths | MASK | The 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` |
| edges | MASK | The estimated edges. This is only generated by the DiffDIS model. |