Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate customizable empty latent image tensors for AI artists with specified dimensions and batch sizes, facilitating flexible latent space creation.
The Empty Latent by Size (WLSH) node is designed to generate an empty latent image tensor based on specified width, height, and batch size parameters. This node is particularly useful for AI artists who need to create a blank latent space for further processing or manipulation in their workflows. By providing a customizable resolution and batch size, it allows for flexibility in generating latent images that fit specific project requirements. The node operates by creating a tensor filled with zeros, which can then be used as a starting point for various latent space operations, ensuring that the generated latent images are compatible with subsequent processing steps.
The width
parameter specifies the width of the latent image in pixels. It determines the horizontal dimension of the generated latent space. The width must be a multiple of 8, with a minimum value of 16 and a maximum value defined by MAX_RESOLUTION
. The default value is set to 512. Adjusting the width will impact the aspect ratio and the overall size of the latent image.
The height
parameter specifies the height of the latent image in pixels. It determines the vertical dimension of the generated latent space. Similar to the width, the height must be a multiple of 8, with a minimum value of 16 and a maximum value defined by MAX_RESOLUTION
. The default value is set to 512. Changing the height will affect the aspect ratio and the overall size of the latent image.
The batch_size
parameter defines the number of latent images to generate in a single batch. This allows for the creation of multiple latent images simultaneously, which can be useful for batch processing or generating variations. The batch size must be at least 1 and can go up to a maximum of 4096. The default value is 1. Increasing the batch size will result in more latent images being generated at once, which can be useful for large-scale projects.
The latent
output parameter is a dictionary containing the generated latent image tensor. This tensor is filled with zeros and has dimensions based on the specified width, height, and batch size. The latent tensor serves as a blank canvas for further processing and manipulation in the latent space.
The width
output parameter returns the adjusted width of the latent image in pixels. This value is the nearest multiple of 8 that is less than or equal to the specified width. It ensures that the generated latent image is compatible with subsequent processing steps that require specific dimensions.
The height
output parameter returns the adjusted height of the latent image in pixels. Similar to the width, this value is the nearest multiple of 8 that is less than or equal to the specified height. It ensures that the generated latent image is compatible with subsequent processing steps that require specific dimensions.
MAX_RESOLUTION
.MAX_RESOLUTION
value and adjust the parameters accordingly.© Copyright 2024 RunComfy. All Rights Reserved.