ComfyUI  >  Nodes  >  Allor Plugin >  ImageBatchFork

ComfyUI Node: ImageBatchFork

Class Name

ImageBatchFork

Category
image/batch
Author
Nourepide (Account age: 2900 days)
Extension
Allor Plugin
Latest Updated
5/22/2024
Github Stars
0.2K

How to Install Allor Plugin

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

ImageBatchFork Description

Split image batches based on priority efficiently for independent processing or analysis.

ImageBatchFork:

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.

ImageBatchFork Input Parameters:

images

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.

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.

ImageBatchFork Output Parameters:

IMAGE

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.

IMAGE

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.

ImageBatchFork Usage Tips:

  • Use the 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.
  • When working with even numbers of images, the node will split the batch evenly, making it straightforward to manage and process the resulting subsets.

ImageBatchFork Common Errors and Solutions:

Not existing priority.

  • Explanation: This error occurs when an invalid value is provided for the priority parameter. The node expects either first or second as valid options.
  • Solution: Ensure that you set the priority parameter to either first or second. Double-check the input to avoid any typos or incorrect values.

ImageBatchFork Related Nodes

Go back to the extension to check out more related nodes.
Allor Plugin
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.