ComfyUI > Nodes > Akatz Custom Nodes > Split Image Batch | Akatz

ComfyUI Node: Split Image Batch | Akatz

Class Name

AK_SplitImageBatch

Category
💜Akatz Nodes/Utils
Author
akatz-ai (Account age: 358days)
Extension
Akatz Custom Nodes
Latest Updated
2025-04-05
Github Stars
0.03K

How to Install Akatz Custom Nodes

Install this extension via the ComfyUI Manager by searching for Akatz Custom Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Akatz Custom Nodes 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Split Image Batch | Akatz Description

Efficiently splits image batches at specified index for targeted processing and analysis.

Split Image Batch | Akatz:

The AK_SplitImageBatch node is designed to efficiently manage and manipulate batches of images by splitting them into two distinct parts at a specified index. This functionality is particularly useful in scenarios where you need to process or analyze different segments of an image batch separately. By allowing you to specify the exact point of division, this node provides flexibility in handling image data, enabling more targeted and efficient workflows. Whether you're working with large datasets or need to isolate specific portions of your image batch for further processing, the AK_SplitImageBatch node offers a straightforward and effective solution. Its primary goal is to enhance your ability to manage image data by providing a simple yet powerful method to partition image batches, thereby optimizing your image processing tasks.

Split Image Batch | Akatz Input Parameters:

image_batch

The image_batch parameter represents the collection of images you wish to split. It is the primary input for the node and should be provided in a format that the node can process, typically as a tensor or array of images. This parameter is crucial as it determines the dataset that will be divided into two parts.

split_index

The split_index parameter specifies the exact point within the image batch where the split should occur. It is an integer value that must be between 1 and the size of the batch minus one. The default value is 1. This parameter is essential for defining how the batch is divided, with all images before this index forming the first part and all images from this index onward forming the second part.

split_batch_index

The split_batch_index parameter determines which of the two resulting partitions from the split should be returned. It accepts integer values of either 0 or 1, with 0 indicating the first partition and 1 indicating the second. The default value is 0. This parameter allows you to select the specific segment of the image batch you wish to work with, providing control over the output of the node.

Split Image Batch | Akatz Output Parameters:

IMAGE

The output parameter, labeled as IMAGE, represents the selected partition of the image batch after the split operation. Depending on the split_batch_index parameter, this output will either be the first or second part of the original image batch. This output is crucial for subsequent processing steps, as it provides the specific segment of the image data that you have chosen to isolate and work with.

Split Image Batch | Akatz Usage Tips:

  • Ensure that the split_index is set within the valid range to avoid errors and achieve the desired split.
  • Use the split_batch_index to control which part of the batch you need for further processing, allowing for more efficient data handling.

Split Image Batch | Akatz Common Errors and Solutions:

ValueError: split_index must be between 1 and {batch_size - 1}.

  • Explanation: This error occurs when the split_index is set outside the valid range, which is between 1 and the size of the batch minus one.
  • Solution: Adjust the split_index to ensure it falls within the specified range, ensuring a valid split point within the batch.

ValueError: split_batch_index must be either 0 or 1.

  • Explanation: This error is raised when the split_batch_index is set to a value other than 0 or 1.
  • Solution: Set the split_batch_index to either 0 or 1 to specify which part of the split batch you wish to return.

Split Image Batch | Akatz Related Nodes

Go back to the extension to check out more related nodes.
Akatz Custom Nodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.