ComfyUI > Nodes > ComfyUI-CUP > Input Image

ComfyUI Node: Input Image

Class Name

输入图像

Category
Blender
Author
AIGODLIKE (Account age: 730days)
Extension
ComfyUI-CUP
Latest Updated
2024-06-21
Github Stars
0.04K

How to Install ComfyUI-CUP

Install this extension via the ComfyUI Manager by searching for ComfyUI-CUP
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-CUP in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Input Image Description

Facilitates image loading, processing in node-based workflow for AI artists, supporting various formats, color channels extraction.

Input Image:

The 输入图像 node, or "Input Image" node, is designed to facilitate the loading and processing of images within a node-based workflow. This node is particularly useful for AI artists who need to incorporate image data into their projects, allowing them to select and manipulate images with ease. The node supports various image formats and provides the capability to handle different color channels, including alpha, red, green, and blue. By converting images to a consistent format and extracting specific channels, the 输入图像 node ensures that the images are ready for further processing or analysis. This functionality is essential for tasks that require precise image manipulation, such as creating masks or preparing images for machine learning models.

Input Image Input Parameters:

image

The image parameter allows you to select an image file from a specified directory. This parameter is crucial as it determines the source image that will be processed by the node. The selection is made from a list of available files, and the node supports image uploads, making it flexible for various use cases. There are no specific minimum or maximum values, but the image must be a valid file in the directory.

channel

The channel parameter specifies which color channel of the image to process. The available options are "alpha," "red," "green," and "blue." This parameter is important because it allows you to focus on a specific aspect of the image, such as transparency or a particular color component. The choice of channel can significantly impact the resulting mask or processed image, as it determines which part of the image data is extracted and used.

Input Image Output Parameters:

MASK

The MASK output is a processed representation of the selected image channel. It is a tensor that contains the normalized values of the specified channel, scaled between 0 and 1. This output is essential for tasks that require a binary or grayscale representation of an image, such as creating masks for image segmentation or compositing. The mask can be used in subsequent nodes to apply effects or transformations based on the image's channel data.

Input Image Usage Tips:

  • When selecting the channel parameter, consider the specific needs of your project. For instance, use the "alpha" channel to work with transparency or the "red" channel to emphasize red hues in the image.
  • Ensure that the image files are correctly named and placed in the input directory to avoid selection issues. This will streamline the workflow and prevent errors related to file access.

Input Image Common Errors and Solutions:

Invalid image file: <image_name>

  • Explanation: This error occurs when the specified image file does not exist in the input directory or is not accessible.
  • Solution: Verify that the image file is correctly named and located in the designated input directory. Ensure that the file path is correct and that the file is not corrupted.

Load Image Error -> <error_message>

  • Explanation: This error indicates a problem encountered while loading the image, such as an unsupported format or a corrupted file.
  • Solution: Check the image format to ensure it is supported by the node. If the file is corrupted, try re-uploading or replacing it with a valid image file.

Input Image Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-CUP
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.