Visit ComfyUI Online for ready-to-use ComfyUI environment
Extract latent image dimensions for AI artists working with generative models, simplifying access and manipulation of latent space properties.
The NegiTools_LatentProperties node is designed to extract and provide the dimensions of a latent image representation. This node is particularly useful for AI artists who work with latent spaces in generative models, as it allows them to easily obtain the width and height of the latent image. By understanding the dimensions of the latent image, you can better manage and manipulate the latent space for various creative tasks, such as image generation, transformation, and interpolation. The node simplifies the process of accessing latent image properties, making it more accessible for users without a deep technical background.
The latent
parameter is the input latent image representation from which the node will extract the dimensions. This parameter is essential as it contains the latent space data that the node processes to determine the width and height. The latent input should be a dictionary with a key "samples"
that holds the latent tensor. The node uses this tensor to calculate the dimensions by multiplying the shape values by 8, which is a common scaling factor in latent space representations.
The WIDTH
output parameter represents the width of the latent image. This value is derived from the shape of the latent tensor and is scaled by a factor of 8. Understanding the width of the latent image is crucial for tasks that involve spatial manipulation or alignment of latent representations.
The HEIGHT
output parameter represents the height of the latent image. Similar to the width, this value is calculated from the shape of the latent tensor and scaled by a factor of 8. Knowing the height of the latent image helps in various creative processes, such as resizing or transforming the latent space.
"samples"
containing the latent tensor to avoid errors."samples"
key."samples"
that holds the latent tensor. Ensure that the tensor is properly structured and accessible.© Copyright 2024 RunComfy. All Rights Reserved.