Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-CustomNodeKit > 图像批次合并

ComfyUI Node: 图像批次合并

Class Name

ImageBatchConcatNode

Category
image
Author
user2318 (Account age: 2574days)
Extension
ComfyUI-CustomNodeKit
Latest Updated
2026-07-16
Github Stars
0.05K

How to Install ComfyUI-CustomNodeKit

Install this extension via the ComfyUI Manager by searching for ComfyUI-CustomNodeKit
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-CustomNodeKit 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

图像批次合并 Description

Merge image batches seamlessly, creating larger batches; handles empty input batch for direct pass-through.

图像批次合并:

The ImageBatchConcatNode is designed to facilitate the seamless merging of two image batches along the first dimension, effectively creating a larger batch from two smaller ones. This node is particularly useful in scenarios where you need to process multiple sets of images together, such as in batch processing tasks or when combining results from different image generation processes. One of the key features of this node is its ability to handle cases where one of the input batches is empty, allowing for a direct pass-through of the non-empty batch. This flexibility ensures that the node can be integrated into various workflows without the need for additional checks or preprocessing steps, making it a versatile tool for AI artists working with image data.

图像批次合并 Input Parameters:

images_a

This parameter represents the first image batch that you want to concatenate. It serves as the base batch to which the second batch, images_b, will be appended. If only images_a is provided and images_b is not, the node will simply pass through images_a as the output. This behavior is particularly useful when you want to ensure that your workflow continues smoothly even if only one batch is available. There are no specific minimum or maximum values for this parameter, as it depends on the size and dimensions of the images you are working with.

images_b

This parameter is the second image batch that will be concatenated to the end of images_a. If images_b is not provided, the node will output images_a directly, ensuring that the absence of a second batch does not disrupt the workflow. This parameter allows you to dynamically add more images to your existing batch, making it easier to manage and process large sets of images. Like images_a, there are no strict size constraints, but the images should ideally match the dimensions of those in images_a for a seamless concatenation.

图像批次合并 Output Parameters:

IMAGE

The output of the ImageBatchConcatNode is a single concatenated image batch. This batch contains all the images from images_a followed by those from images_b, effectively doubling the batch size if both inputs are provided. The output is crucial for tasks that require processing or analyzing a larger set of images together, as it allows for efficient handling of multiple images in a single operation. The concatenated batch maintains the original dimensions of the input images, ensuring that no data is lost or altered during the process.

图像批次合并 Usage Tips:

  • Ensure that the images in both images_a and images_b have the same dimensions to avoid any issues during concatenation. This will help maintain consistency in the output batch.
  • Use this node when you need to combine results from different image generation processes or when preparing a large batch for further processing, such as training a model or applying a batch transformation.

图像批次合并 Common Errors and Solutions:

Dimension mismatch error

  • Explanation: This error occurs when the images in images_a and images_b have different dimensions, preventing them from being concatenated along the first dimension.
  • Solution: Ensure that all images in both batches have the same height, width, and number of channels. You may need to resize or pad the images to achieve uniform dimensions.

Empty input error

  • Explanation: This error might occur if both images_a and images_b are empty, resulting in no output batch.
  • Solution: Check that at least one of the input batches contains images. If necessary, provide a default batch or handle the empty case in your workflow to prevent disruptions.

图像批次合并 Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-CustomNodeKit
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 Models, enabling artists to harness the latest AI tools to create incredible art.

图像批次合并