Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates image loading, processing, transformation, color channel extraction, and mask creation for AI art projects.
The InputImage (2lab) node is designed to facilitate the loading and processing of images within your AI art projects. This node allows you to import images from a specified directory, apply transformations, and extract specific color channels to create masks. It is particularly useful for tasks that require precise image manipulation and mask generation, such as image segmentation, compositing, and other creative applications. By leveraging this node, you can streamline your workflow, ensuring that images are correctly oriented and processed for further use in your projects.
This parameter allows you to select an image file from a predefined directory. The image file is loaded and processed by the node. The available options are the files present in the input directory, and you can upload new images if needed. This parameter is crucial as it determines the source image that will be used for further processing.
This is a string parameter that provides a description for the image. It is optional and can be used to annotate or label the image for better organization and understanding. The default value is "图片", which means "image" in Chinese. This parameter does not affect the image processing but can be useful for documentation purposes.
This boolean parameter determines whether the processed image and mask should be exported. The default value is True
. When set to True
, the node will save the processed outputs, which can be useful for keeping a record of the transformations applied or for further use in other parts of your project.
This output parameter provides the processed image. The image is loaded, oriented correctly, and converted to RGB format. It is returned as a tensor, which can be used directly in subsequent nodes for further processing or analysis.
This output parameter provides the mask generated from the specified color channel of the image. The mask is a tensor that represents the selected channel's intensity values, normalized between 0 and 1. This mask can be used for various purposes, such as masking parts of the image, creating alpha channels, or other creative effects.
desc
parameter to add meaningful descriptions to your images, which can help in organizing and identifying them later.export
parameter to True
if you need to save the processed images and masks for future reference or use in other projects.<image_name>
© Copyright 2024 RunComfy. All Rights Reserved.