Visit ComfyUI Online for ready-to-use ComfyUI environment
Efficiently organize latent representations in grid format for AI art applications with control over grid dimensions and arrangement.
The LatentGridCompose
node is designed to help you efficiently organize and manage latent representations in a grid format. This node is particularly useful when you need to compose multiple latent samples into a structured grid, which can be beneficial for various AI art applications, such as generating composite images or managing latent spaces in a more organized manner. By leveraging this node, you can control the dimensions of the grid, add padding, and introduce randomness to the arrangement of the latents, providing you with flexibility and creative control over the composition process. The primary function of this node is to take a collection of latent samples and arrange them into a grid based on the specified parameters, making it easier to visualize and manipulate complex latent data.
This parameter expects a collection of latent samples that you want to compose into a grid. The latents are the core data that will be organized based on the other input parameters.
This integer parameter determines the number of columns in the grid. It controls the horizontal dimension of the grid, allowing you to specify how many latents should be placed in each row. The value can range from a minimum of 2 to a maximum of 8, with a default value of 3. Adjusting this parameter will impact the overall layout and structure of the composed grid.
This boolean parameter specifies whether padding should be added between the latents in the grid. If set to True
, a padding of 1 unit will be added around each latent, creating a visual separation between them. The default value is False
, meaning no padding is applied by default. Enabling padding can help in distinguishing individual latents more clearly in the grid.
This boolean parameter determines whether the latents should be arranged randomly within the grid. If set to True
, the latents will be shuffled based on a random seed, introducing variability in the arrangement. The default value is False
, meaning the latents will be arranged in their original order. Using this parameter can add an element of randomness and creativity to the grid composition.
This integer parameter serves as the random seed for shuffling the latents when the random
parameter is enabled. It ensures reproducibility of the random arrangement by using a specific seed value. The value can range from 0 to 0xffffffffffffffff, with a default value of 0. Changing this seed will result in different random arrangements of the latents.
The output of this node is a dictionary containing the composed grid of latent samples. The key samples
holds the grid data, which is a tensor representing the arranged latents based on the specified input parameters. This output can be used for further processing, visualization, or as input to other nodes in your AI art workflow.
x_dim
values to find the optimal number of columns for your specific use case.pad_grid
parameter if you want to add clear separation between individual latents, which can help in better visualizing each latent sample.random
parameter to introduce variability and creativity in the arrangement of latents, especially when exploring different compositions.rs
parameter to control the random seed and achieve reproducible random arrangements, which can be useful for consistent experimentation.x_dim
parameter value is outside the allowed range (2 to 8).x_dim
value is set between 2 and 8.latents
parameter is not provided or is empty.latents
parameter.rs
parameter value is outside the allowed range (0 to 0xffffffffffffffff).rs
parameter to a value within the specified range.pad_grid
is enabled.pad_grid
parameter is set correctly and ensure that the padding logic in the node is functioning as expected.© Copyright 2024 RunComfy. All Rights Reserved.