Visit ComfyUI Online for ready-to-use ComfyUI environment
Split image batches based on priority efficiently for independent processing or analysis.
The ImageBatchFork
node is designed to split a batch of images into two separate batches. This can be particularly useful when you need to process or analyze different subsets of images independently. The node intelligently divides the images based on the batch size and a specified priority, ensuring that the split is handled efficiently and according to your preferences. Whether you have an even or odd number of images, ImageBatchFork
ensures that the images are divided in a way that aligns with your specified priority, making it a versatile tool for managing image batches in your workflow.
This parameter represents the batch of images that you want to split. The images should be provided in a tensor format, where the first dimension corresponds to the batch size. The node will use this batch of images to create two new batches based on the specified priority.
The priority
parameter determines how the node will handle the splitting of an odd number of images. It accepts two options: first
and second
. If set to first
, the first batch will contain one more image than the second batch when the total number of images is odd. Conversely, if set to second
, the second batch will contain one more image than the first batch in such cases. This parameter ensures that you have control over the distribution of images between the two batches.
The first output is a batch of images that corresponds to the first subset of the original batch. The size of this batch depends on the total number of images and the specified priority. This output allows you to process or analyze the first subset of images independently.
The second output is a batch of images that corresponds to the second subset of the original batch. Similar to the first output, the size of this batch is determined by the total number of images and the specified priority. This output enables you to handle the second subset of images separately from the first.
priority
parameter to control the distribution of images when dealing with an odd number of images. This can be useful when you need to ensure that a specific subset of images receives more attention or resources.priority
parameter. The node expects either first
or second
as valid options.priority
parameter to either first
or second
. Double-check the input to avoid any typos or incorrect values.© Copyright 2024 RunComfy. All Rights Reserved.