Visit ComfyUI Online for ready-to-use ComfyUI environment
Merge two image batches into a cohesive dataset with scaling and cropping options for AI art projects.
The VHS_MergeImages node is designed to combine two batches of images into a single cohesive batch. This is particularly useful when you have multiple sets of images that need to be processed together or when you want to create a composite dataset from different sources. The node ensures that the images are scaled appropriately to match each other based on the specified merge strategy, scale method, and cropping options. This functionality is essential for maintaining consistency in image dimensions and quality, which is crucial for subsequent processing steps in your AI art projects.
This parameter represents the first batch of images to be merged. It is crucial that these images are provided in a compatible format to ensure successful merging. The images in this batch will be used as one of the sources for the final merged output.
This parameter represents the second batch of images to be merged. Similar to images_A
, these images must be in a compatible format. The images in this batch will be combined with those in images_A
to create the final merged output.
The merge_strategy
parameter determines how the node will handle differences in image dimensions between images_A
and images_B
. Options include match A
, match B
, match smaller
, and match larger
. This parameter is essential for ensuring that the images are scaled correctly to match each other, which impacts the final quality and consistency of the merged images.
The scale_method
parameter specifies the method used to scale the images if their dimensions do not match. Options include nearest-exact
, bilinear
, area
, bicubic
, and bislerp
. Each method has its own characteristics and can affect the quality and appearance of the scaled images. Choosing the right scale method is important for maintaining the visual integrity of the images.
The crop
parameter determines how the images will be cropped if necessary during the scaling process. Options include disabled
and center
. This parameter is useful for ensuring that the important parts of the images are preserved and that the final merged images are visually appealing.
This output parameter represents the final merged batch of images. The images from images_A
and images_B
are combined into a single batch, with dimensions and quality adjusted according to the specified merge strategy, scale method, and cropping options. This output is ready for further processing or analysis.
The count
output parameter indicates the total number of images in the merged batch. This is useful for keeping track of the dataset size and ensuring that the merging process has been completed successfully.
images_A
and images_B
are in compatible formats to avoid errors during the merging process.merge_strategy
that best fits your needs based on the dimensions of your image batches. For example, use match smaller
if you want to ensure that the final images are not upscaled excessively.scale_method
options to find the one that provides the best visual quality for your specific images.crop
option to focus on the most important parts of your images, especially if the images have different aspect ratios.images_A
and images_B
are too different to be merged without scaling.merge_strategy
and scale_method
to handle the dimension differences. Check that the images are in compatible formats.scale_method
parameter is set to one of the supported options: nearest-exact
, bilinear
, area
, bicubic
, or bislerp
.crop
parameter is set to either disabled
or center
.© Copyright 2024 RunComfy. All Rights Reserved.