Image Grid To Batch(ImageGridtoBatch)
This node cuts and reassembles the input grid image in the spatial dimension by specifying the number of rows and columns of the grid.
Image Gridto Batch
The Image Grid To Batch node splits and reorganizes an input grid image along the spatial dimension by specifying the number of rows and columns in the grid.
The Image Grid To Batch node is an image processing tool. Its core function is to decompose a grid image containing multiple sub-images and convert it into an independent image batch. This allows users to separate images that were previously collaged together for subsequent batch processing or analysis.
Node Functionality
This node splits and reorganizes the input grid image along the spatial dimension by specifying the number of rows and columns. It supports the standard IMAGE input format and automatically calculates the size of each sub-image unit.
Node Parameter Description - Image Grid To Batch
Connection Inputs (Inputs)
| Parameter Name | Data Type | Required | Default Value | Value Range/Options | Description |
|---|---|---|---|---|---|
image | IMAGE | Yes | - | - | Sub-images of consistent size. |
Control Parameters (Parameters)
| Parameter Name | Data Type | Required | Default Value | Value Range/Options | Description |
|---|---|---|---|---|---|
columns | INT | Yes | 3 | 1 - 8 | The number of columns in the grid. |
rows | INT | Yes | 0 | 1 - 8 | The number of rows in the grid. |
Output
| Parameter Name | Data Type | Description |
|---|---|---|
| IMAGE | IMAGE | Output parameter IMAGE: The resulting image batch after decomposition, containing all independent sub-images. |
Usage Scenarios
In animation or character design workflows, if you have a character grid image containing multiple different expressions or poses, you can use this node to quickly decompose it into independent images. Subsequently, you can connect the output image batch to other nodes, such as image upscalers or style converters, for uniform post-processing of each expression.
Notes
Please note that this node requires the sub-images within the grid image to be neatly arranged and of consistent size. Incorrect settings for the number of rows and columns may result in incomplete segmentation or incorrect output.
Image Grid To Batch Node Source Code Link
The Image Grid To Batch node is from the ComfyUI-KJNodes node package.
Comments
Sign in with GitHub to join the discussion.