ComfyUI > Nodes > ComfyUI > Batch Images

ComfyUI Node: Batch Images

Class Name

ImageBatch

Category
image
Author
ComfyAnonymous (Account age: 598days)
Extension
ComfyUI
Latest Updated
2024-08-12
Github Stars
45.85K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI 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

Batch Images Description

Combine two images into a single batch for streamlined processing and manipulation in AI art workflows.

Batch Images:

The ImageBatch node is designed to combine two images into a single batch, facilitating the processing of multiple images simultaneously. This node is particularly useful for AI artists who need to handle and manipulate multiple images in a cohesive manner. By batching images together, you can streamline workflows, apply consistent transformations, and ensure that image dimensions are compatible for further processing. The primary function of this node is to concatenate two images along the batch dimension, ensuring they are of the same size by upscaling the second image if necessary.

Batch Images Input Parameters:

image1

This parameter represents the first image to be included in the batch. It is essential that this image is provided, as it serves as the reference for the dimensions to which the second image will be adjusted if needed. The image should be in a compatible format and ready for processing.

image2

This parameter represents the second image to be included in the batch. If the dimensions of this image do not match those of the first image, it will be automatically upscaled to match the dimensions of the first image using bilinear interpolation. This ensures that both images can be concatenated seamlessly.

Batch Images Output Parameters:

IMAGE

The output is a single batch containing the two input images concatenated along the batch dimension. This batch can then be used for further image processing tasks, ensuring that both images are treated as a cohesive unit. The output maintains the original image quality and dimensions, with the second image upscaled if necessary to match the first.

Batch Images Usage Tips:

  • Ensure that both input images are in a compatible format and ready for processing to avoid any issues during batching.
  • Use this node to streamline workflows that require consistent transformations or manipulations across multiple images.
  • If the second image is significantly smaller than the first, be aware that upscaling may affect its quality. Consider preprocessing the images to be of similar sizes if quality is a concern.

Batch Images Common Errors and Solutions:

"Image dimensions do not match and upscaling failed"

  • Explanation: This error occurs when the second image cannot be upscaled to match the dimensions of the first image due to an issue with the upscaling process.
  • Solution: Ensure that the second image is in a compatible format and that there are no issues with the image file itself. You may also try manually resizing the second image to match the dimensions of the first image before using the node.

"Input images are not provided"

  • Explanation: This error occurs when one or both of the required input images are not provided to the node.
  • Solution: Make sure to provide both image1 and image2 parameters with valid image files before executing the node. Double-check the input connections to ensure they are correctly linked.

Batch Images Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.