Visit ComfyUI Online for ready-to-use ComfyUI environment
Process and manipulate grid data for image generation tasks, input configurations, adjust dimensions, apply padding.
The GridInput
node is designed to process and manipulate grid data for image generation tasks. It allows you to input grid configurations, adjust their dimensions, and apply padding to each grid element. This node is particularly useful for AI artists who need to manage and customize grid layouts within their creative projects. By providing a flexible interface for grid manipulation, GridInput
helps streamline the process of preparing grid data for further image processing or visualization.
This parameter accepts a JSON string representing the grid data. The JSON should contain information about the grids, including their labels and coordinates. This input is essential for defining the initial grid configuration that will be processed by the node.
This parameter specifies the padding to be applied to each grid element. Padding helps to create space around the grid elements, ensuring they do not overlap or touch each other. The padding value is applied uniformly to all grid elements.
This optional parameter allows you to set a specific width for the grid layout. If not provided, the default value of -1 indicates that the width will be determined based on the input grid data. Setting a specific width can help control the overall dimensions of the grid layout.
This optional parameter allows you to set a specific height for the grid layout. Similar to the width parameter, the default value of -1 indicates that the height will be determined based on the input grid data. Specifying a height can help manage the vertical dimensions of the grid layout.
This output provides the processed grid data with the applied padding. Each grid element's coordinates are adjusted based on the specified padding, ensuring a consistent layout.
This output contains the labels of the grid elements. Labels are useful for identifying and categorizing different grid elements within the layout.
This output is a tensor representation of the generated image based on the processed grid data. The image is created with the specified width and height, and it serves as a visual representation of the grid layout.
grids
parameter is correctly formatted and contains all necessary grid information.padding
parameter to create space between grid elements, preventing them from overlapping.width
and height
parameters if you need to control the overall dimensions of the grid layout. Otherwise, the node will use the dimensions from the input grid data.grids
parametergrids
parameter is not correctly formatted.padding
parameter is missing or contains an invalid value.width
or height
parameters are not specified correctly, leading to incorrect grid dimensions.width
and height
parameters are set to valid values or left as -1 to use the dimensions from the input grid data.© Copyright 2024 RunComfy. All Rights Reserved.