KJNodes/imagegenerated

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

image
IMAGE
columns
3
rows
0
KJNodes

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 NameData TypeRequiredDefault ValueValue Range/OptionsDescription
imageIMAGEYes--Sub-images of consistent size.

Control Parameters (Parameters)

Parameter NameData TypeRequiredDefault ValueValue Range/OptionsDescription
columnsINTYes31 - 8The number of columns in the grid.
rowsINTYes01 - 8The number of rows in the grid.

Output

Parameter NameData TypeDescription
IMAGEIMAGEOutput 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.

The Image Grid To Batch node is from the ComfyUI-KJNodes node package.

Comments

Sign in with GitHub to join the discussion.

Loading comments…