load MASK from greyscale/red

Basic data handling: PathLoadMaskFromGreyscale

Loads a mask from a greyscale image or the red channel of an RGB image. This node loads an image from the specified path and creates a mask from it. If the image is greyscale, the intensity is used directly. If the image is RGB, the red channel is used.

Pack: Basic data handling

custom_nodes.ComfyUI-basic_data_handling

Inputs (2)

NameTypeRequired
pathSTRINGrequired
invertBOOLEANoptional

Outputs (2)

NameType
maskMASK
existsBOOLEAN