ComfyUI > Nodes > antrobots ComfyUI Nodepack > Split Image Grid

ComfyUI Node: Split Image Grid

Class Name

split

Category
antrobots-ComfyUI-nodepack/image-handling
Author
antrobot (Account age: 3193days)
Extension
antrobots ComfyUI Nodepack
Latest Updated
2025-04-02
Github Stars
0.02K

How to Install antrobots ComfyUI Nodepack

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

Partition tensor into two segments based on index for targeted operations, enhancing data manipulation efficiency.

Split Image Grid:

The split function is designed to partition a given tensor into two distinct parts based on a specified index. This operation is particularly useful in scenarios where you need to separate data into different segments for further processing or analysis. The function works by dividing the input tensor into a source (src) and a destination (dst) based on pre-defined indices. This separation allows for targeted operations on each segment, enhancing the flexibility and efficiency of data manipulation tasks. By leveraging this function, you can streamline workflows that require the handling of different data subsets independently, making it a valuable tool in complex data processing pipelines.

Split Image Grid Input Parameters:

x

The input parameter x is a tensor that you want to split into two parts. This tensor represents the data that needs to be divided into source and destination segments. The shape of the tensor is crucial as it determines how the data will be split. The last dimension of the tensor, denoted as C, is particularly important as it is used to expand the indices for gathering the source and destination parts. The function does not specify minimum, maximum, or default values for this parameter, as it is expected to be provided by the user based on their specific data requirements.

Split Image Grid Output Parameters:

src

The src output is a tensor that contains the source segment of the input data. This segment is extracted based on the indices specified for the source, allowing you to perform operations specifically on this subset of the data. The src tensor retains the same number of channels as the input tensor, ensuring that the data structure remains consistent for further processing.

dst

The dst output is a tensor that contains the destination segment of the input data. Similar to the src tensor, the dst tensor is extracted using specific indices, enabling targeted operations on this part of the data. The dst tensor also maintains the same channel structure as the input, facilitating seamless integration into subsequent data processing steps.

Split Image Grid Usage Tips:

  • Ensure that the input tensor x is properly shaped and contains the necessary data for splitting. The last dimension should match the expected number of channels for accurate index expansion.
  • Use the split function in conjunction with other data manipulation functions to create efficient data processing pipelines. This can help in scenarios where different segments of data require distinct operations.

Split Image Grid Common Errors and Solutions:

IndexError: index out of range

  • Explanation: This error occurs when the indices used for splitting exceed the dimensions of the input tensor.
  • Solution: Verify that the indices are correctly defined and fall within the valid range of the input tensor's dimensions.

RuntimeError: shape mismatch

  • Explanation: This error arises when the expanded indices do not match the shape of the input tensor.
  • Solution: Ensure that the input tensor's shape and the expanded indices are compatible, particularly focusing on the last dimension.

Split Image Grid Related Nodes

Go back to the extension to check out more related nodes.
antrobots ComfyUI Nodepack
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.