Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate empty latent image tensor with specified aspect ratio and orientation for AI artists' precise latent space creation.
The Empty Latent by Ratio (WLSH) node is designed to generate an empty latent image tensor based on a specified aspect ratio and orientation. This node is particularly useful for AI artists who need to create latent space representations with specific dimensions for further processing or manipulation. By allowing you to define the aspect ratio and orientation (landscape or portrait), this node provides flexibility in generating latent images that fit your creative needs. The primary goal of this node is to facilitate the creation of latent images with precise dimensions, ensuring that the generated latent space is ready for subsequent AI-driven transformations or enhancements.
This parameter defines the aspect ratio of the latent image. It is a string value that specifies the width-to-height ratio, such as "1:1" or "16:9". The aspect ratio determines the proportional relationship between the width and height of the generated latent image. Available options include "1:1", "6:5", "5:4", "4:3", "3:2", "16:10", "16:9", "19:9", "21:9", "43:18", "2:1", "3:1", and "4:1".
This parameter specifies the orientation of the latent image. It can be either "landscape" or "portrait". The orientation determines whether the width or height is the longer dimension of the generated latent image. Choosing "landscape" will make the width longer, while "portrait" will make the height longer.
This parameter sets the length of the shorter side of the latent image. It is an integer value with a default of 512, a minimum of 64, and a maximum defined by the system's maximum resolution. The shortside value directly impacts the overall dimensions of the latent image, as the longer side is calculated based on the aspect ratio.
This parameter defines the number of latent images to generate in a single batch. It is an integer value with a default of 1, a minimum of 1, and a maximum of 64. The batch size allows you to create multiple latent images simultaneously, which can be useful for batch processing or generating variations.
This output parameter is a tensor containing the generated latent image(s). The latent tensor is initialized with zeros and has dimensions based on the specified aspect ratio, orientation, and shortside. It is ready for further processing or manipulation in the latent space.
This output parameter represents the width of the generated latent image(s) in pixels. The width is calculated based on the aspect ratio and the shortside value, ensuring that the latent image has the correct dimensions.
This output parameter represents the height of the generated latent image(s) in pixels. The height is calculated based on the aspect ratio and the shortside value, ensuring that the latent image has the correct dimensions.
© Copyright 2024 RunComfy. All Rights Reserved.