Visit ComfyUI Online for ready-to-use ComfyUI environment
Split batch images into two groups based on index for independent processing and analysis, enhancing workflow flexibility.
The VHS_SplitImages
node is designed to split a batch of images into two separate groups based on a specified index. This functionality is particularly useful when you need to process or analyze different segments of an image batch independently. By dividing the images into two groups, you can apply different operations or transformations to each subset, enhancing your workflow's flexibility and efficiency. This node is essential for tasks that require segmentation of image data, such as training machine learning models on different parts of a dataset or performing distinct image processing tasks on separate image groups.
This parameter represents the batch of images you want to split. The images should be provided in a tensor format, which is a multi-dimensional array commonly used in machine learning and image processing. The batch of images will be divided into two groups based on the split_index
parameter.
The split_index
parameter determines the point at which the batch of images will be split into two groups. It is an integer value that specifies the index in the image batch where the split occurs. Images before this index will form the first group, and images from this index onwards will form the second group. The default value is 0, and it can be adjusted in steps of 1. The minimum value is a very large negative number (BIGMIN
), and the maximum value is a very large positive number (BIGMAX
).
This output parameter represents the first group of images resulting from the split. It contains all images from the start of the batch up to, but not including, the split_index
. This subset can be used for further processing or analysis.
This output parameter provides the count of images in the IMAGE_A
group. It is an integer value that indicates how many images are in the first subset.
This output parameter represents the second group of images resulting from the split. It contains all images from the split_index
to the end of the batch. This subset can be used for different processing or analysis tasks compared to IMAGE_A
.
This output parameter provides the count of images in the IMAGE_B
group. It is an integer value that indicates how many images are in the second subset.
split_index
to half the total number of images in the batch.A_count
and B_count
outputs to verify the number of images in each group after the split.split_index
values to find the optimal division point for your specific task.split_index
value is outside the range of the image batch indices.split_index
is within the valid range of the image batch indices. Adjust the split_index
to a value between 0 and the total number of images in the batch.images
input is not provided in the correct tensor format.images
input is a tensor. Convert your image data to a tensor format before passing it to the node.split_index
is not an integer value.split_index
is an integer. If necessary, convert the value to an integer before using it as a parameter.© Copyright 2024 RunComfy. All Rights Reserved.