Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate empty latent images with precise control over dimensions, aspect ratio, and orientation for AI artists.
The Empty Latent by Pixels (WLSH) node is designed to generate an empty latent image based on specified pixel dimensions, aspect ratio, and orientation. This node is particularly useful for AI artists who need to create a latent space representation of an image with precise control over its resolution and aspect ratio. By providing a flexible and efficient way to generate latent images, this node helps streamline the workflow for various image processing and generation tasks, ensuring that the resulting latent images are well-suited for further manipulation or analysis.
The aspect
parameter defines the aspect ratio of the generated latent image. It is a string that specifies the ratio of width to height, such as "16:9" or "4:3". This parameter helps determine the overall shape of the latent image. Available options include "1:1", "5:4", "4:3", "3:2", "16:10", "16:9", "19:9", "21:9", "43:18", "2:1", "3:1", and "4:1".
The direction
parameter specifies the orientation of the latent image. It can be set to either "landscape" or "portrait". This parameter affects the width and height dimensions of the generated image, swapping them if "portrait" is selected.
The megapixels
parameter determines the total number of megapixels for the generated latent image. It is a floating-point value that ranges from 0.01 to 16.0, with a default value of 1.0. This parameter directly influences the resolution of the latent image, with higher values resulting in larger images.
The batch_size
parameter specifies the number of latent images to generate in a single batch. It is an integer value that ranges from 1 to 64, with a default value of 1. This parameter is useful for generating multiple latent images simultaneously, which can be beneficial for batch processing tasks.
The latent
output parameter is a dictionary containing the generated latent image(s). The latent images are represented as tensors filled with zeros, which can be further processed or manipulated as needed.
The width
output parameter indicates the width of the generated latent image(s) in pixels. This value is calculated based on the specified aspect ratio, megapixels, and orientation.
The height
output parameter indicates the height of the generated latent image(s) in pixels. This value is calculated based on the specified aspect ratio, megapixels, and orientation.
aspect
parameter to "1:1" and adjust the megapixels
parameter to achieve the desired resolution.direction
parameter to quickly switch between landscape and portrait orientations without manually adjusting the width and height values.megapixels
values to find the optimal resolution for your specific use case, keeping in mind that higher values will result in larger latent images.aspect
ratio is not one of the available options.aspect
parameter is set to one of the predefined ratios, such as "16:9" or "4:3".megapixels
value is outside the allowed range of 0.01 to 16.0.megapixels
parameter to a value within the valid range.batch_size
value is outside the allowed range of 1 to 64.batch_size
parameter to a value within the valid range.© Copyright 2024 RunComfy. All Rights Reserved.