ComfyUI Nodes
mask
Load Image Mask

Load Image (as Mask)

comfyUI节点-Load Image(as Mask)|加载图像遮罩

Documentation

  • Class name: LoadImageMask
  • Category: mask
  • Output node: False

The LoadImageMask node is designed to load images and their associated masks from a specified path, processing them to ensure compatibility with further image manipulation or analysis tasks. It focuses on handling various image formats and conditions, such as presence of an alpha channel for masks, and prepares the images and masks for downstream processing by converting them to a standardized format.

Input types

ParameterComfy dtypeDescription
imageCOMBO[STRING]The 'image' parameter specifies the image file to be loaded and processed. It plays a crucial role in determining the output by providing the source image for mask extraction and format conversion.
channelCOMBO[STRING]The 'channel' parameter specifies the color channel of the image that will be used to generate the mask. This allows for flexibility in mask creation based on different color channels, enhancing the node's utility in various image processing scenarios.

Output types

ParameterComfy dtypeDescription
maskMASKThis node outputs the mask generated from the specified image and channel, prepared in a standardized format suitable for further processing in image manipulation tasks.