Visit ComfyUI Online for ready-to-use ComfyUI environment
Separate grid-based image into individual tiles for granular manipulation and analysis.
The UnGridify (image) node is designed to take a single image that has been divided into a grid and separate it back into its individual tiles. This is particularly useful for AI artists who work with grid-based image manipulations and need to process or analyze individual sections of an image separately. By specifying the number of columns and rows, the node efficiently extracts each tile from the grid, allowing for more granular control and manipulation of image data. This can be beneficial for tasks such as texture mapping, detailed image editing, or any scenario where working with smaller image segments is advantageous.
This parameter expects an image input that has been previously divided into a grid. The image should be in a format that the node can process, typically a tensor representation of the image data. The image serves as the source from which individual tiles will be extracted.
This parameter specifies the number of columns in the grid. It determines how many vertical divisions the image has. The value of columns directly impacts the width of each extracted tile. For example, if the image is divided into 4 columns, each tile will be one-fourth the width of the original image. The parameter should be an integer, and the typical range is from 1 to the maximum number of columns the image can be divided into without losing data integrity.
This parameter specifies the number of rows in the grid. It determines how many horizontal divisions the image has. The value of rows directly impacts the height of each extracted tile. For example, if the image is divided into 4 rows, each tile will be one-fourth the height of the original image. The parameter should be an integer, and the typical range is from 1 to the maximum number of rows the image can be divided into without losing data integrity.
The output of this node is a list of image tiles extracted from the original grid. Each tile is a segment of the original image, corresponding to the specified number of columns and rows. These tiles can be used individually for further processing, analysis, or manipulation. The output is particularly useful for tasks that require detailed work on specific parts of an image.
ValueError: Dimension mismatch
TypeError: Invalid image format
IndexError: Tile extraction out of bounds
© Copyright 2024 RunComfy. All Rights Reserved.