Visit ComfyUI Online for ready-to-use ComfyUI environment
Merge multiple image batches with different frame counts into a cohesive batch, ensuring synchronization and customization of merging process.
The Batch Merge (mtb) node is designed to combine multiple image batches that may have different frame counts into a single cohesive batch. This node is particularly useful for AI artists who work with animations or sequences of images, as it ensures that all image batches are synchronized to the same frame count before merging. By adjusting the frame counts through either head or tail filling, the node ensures consistency across batches. The merging process can be customized using different fusion modes such as addition, multiplication, or averaging, allowing for creative flexibility in how the final merged image is produced. This node simplifies the process of batch merging, making it accessible even to those without a deep technical background.
The fusion_mode
parameter determines how the images in the batches will be combined. It offers three options: "add", "multiply", and "average". The "add" mode sums the pixel values of corresponding frames, the "multiply" mode multiplies the pixel values, and the "average" mode calculates the average of the pixel values. The default value is "average". This parameter significantly impacts the visual outcome of the merged image, with each mode providing a different blending effect.
The fill
parameter specifies how to handle batches with fewer frames than the maximum frame count. It has two options: "head" and "tail". If "head" is selected, the first frame of the shorter batch is repeated to match the frame count. If "tail" is selected, the last frame is repeated. The default value is "tail". This parameter ensures that all batches are aligned in terms of frame count before merging, which is crucial for maintaining the integrity of the animation or sequence.
The output parameter IMAGE
represents the final merged image batch. This batch has a consistent frame count across all images, achieved by filling and merging according to the specified parameters. The resulting image batch can be used in further processing or as a final output, providing a seamless and cohesive visual sequence.
fusion_mode
parameter and ensure it is set to one of the supported options: "add", "multiply", or "average".fill
parameter is set to either "head" or "tail".© Copyright 2024 RunComfy. All Rights Reserved.