TK 空Latent 图像:
The AnimaPresetEmptyLatent node is designed to facilitate the creation of empty latent spaces for image generation workflows within the Anima/Cosmos ecosystem. This node is particularly useful for artists and developers who need a standardized starting point for generating images, as it provides a blank canvas in the form of a latent space. The node generates a single-frame latent that is compatible with Anima's 5D Cosmos latent consumers, ensuring seamless integration into existing workflows. By offering a preset-friendly interface, it simplifies the process of setting up latent spaces with common resolutions, making it accessible even to those with limited technical expertise. The primary goal of this node is to streamline the initial stages of image generation by providing a consistent and easily configurable latent space.
TK 空Latent 图像 Input Parameters:
width
The width parameter specifies the width of the output image in pixels. It is crucial for determining the horizontal resolution of the latent space. The width must be a multiple of 16, with a default value of 1024 pixels. The minimum allowable width is 16 pixels, and the maximum is determined by the system's maximum resolution capability. This parameter directly impacts the aspect ratio and detail level of the generated image.
height
The height parameter defines the vertical resolution of the output image in pixels. Similar to the width, the height must also be a multiple of 16, ensuring compatibility with the latent space structure. The default height is set to 1024 pixels, with a minimum of 16 pixels and a maximum constrained by the system's capabilities. Adjusting the height affects the overall size and aspect ratio of the latent space.
batch_size
The batch_size parameter determines the number of empty latents to be created in a single operation. This allows for the generation of multiple latent spaces simultaneously, which can be beneficial for batch processing or experimentation with different configurations. The default batch size is 1, with a minimum of 1 and a maximum of 4096. Increasing the batch size can enhance workflow efficiency by enabling the simultaneous creation of multiple images.
TK 空Latent 图像 Output Parameters:
latent
The latent output is a tensor representing the generated empty latent space. This tensor serves as the foundational structure for subsequent image generation processes. It is crucial for initializing the image creation workflow, providing a blank slate that can be further manipulated or processed to produce the desired visual output.
width
The width output parameter reflects the width of the generated latent space, confirming the horizontal resolution that was set during the input phase. This output is essential for verifying that the latent space has been created with the intended dimensions.
height
The height output parameter indicates the vertical resolution of the generated latent space. It serves as a confirmation of the height setting applied during the input phase, ensuring that the latent space matches the specified dimensions.
TK 空Latent 图像 Usage Tips:
- Ensure that both the
widthandheightparameters are set to multiples of 16 to avoid errors and ensure compatibility with the latent space structure. - Utilize the
batch_sizeparameter to generate multiple latents at once, which can be particularly useful for testing different configurations or for batch processing tasks.
TK 空Latent 图像 Common Errors and Solutions:
ValueError: Anima 预设空 Latent 的宽高必须是 16 的倍数。
- Explanation: This error occurs when the specified width or height is not a multiple of 16, which is a requirement for the latent space structure.
- Solution: Adjust the
widthandheightparameters to ensure they are multiples of 16. This will resolve the error and allow the node to generate the latent space correctly.
