Image Batch Multi(ImageBatchMulti)
This node technically works by dynamically creating input ports
Image Batch Multi
The Image Batch Multi node technically works by dynamically creating input ports.
The Image Batch Multi node is a tool for image batching. Its core function is to merge multiple independent images into a single batch. This allows you to input multiple image samples as a whole into subsequent workflows for unified processing, such as batch generation or batch conversion.
Node Functionality
This node technically works by dynamically creating input ports. You first set the desired number of images using the inputcount parameter, then click the "Update" button. The node interface will then generate a corresponding number of image input slots. Internally, it calls ComfyUI's built-in ImageBatch node to concatenate the input image tensors along the batch dimension, ultimately outputting a batch tensor containing all input images.
Node Parameter Description - Image Batch Multi
Connection Inputs (Inputs)
| Parameter Name | Data Type | Required | Default Value | Value Range/Options | Description |
|---|---|---|---|---|---|
image_1 | IMAGE | Yes | - | - | : Receives and serves as the base first image for the batch. |
image_2 | IMAGE | No | - | - | : Receives the second image to be merged into the batch. |
Control Parameters (Parameters)
| Parameter Name | Data Type | Required | Default Value | Value Range/Options | Description |
|---|---|---|---|---|---|
inputcount | INT | Yes | 2 | 2 - 1000 (Step: 1) | : Sets the total number of images to be merged. This parameter determines the number of image input ports the node will display, with a valid range from 2 to 1000. |
Output
| Parameter Name | Data Type | Description |
|---|---|---|
| images | IMAGE | : Outputs the merged image batch tensor. |
Usage Scenarios
In practical workflows, this node is very useful when you need to feed multiple images with different content but identical dimensions (such as a set of portraits of different characters, or multiple design variants) into the same sampler or image processor. For example, you can first generate multiple sketches, then use this node to merge them, and subsequently apply the same upscaling or stylization filter all at once, enabling efficient batch processing.
Notes
Please note that the dimensions (height, width, and number of channels) of all input images must be exactly the same; otherwise, the concatenation operation will fail. Additionally, the number of input images cannot exceed the maximum value set by the inputcount parameter.
Image Batch Multi Node Source Code Link
The Image Batch Multi node is from the ComfyUI-KJNodes node package.
Comments
Sign in with GitHub to join the discussion.