ComfyUI  >  Nodes  >  ComfyUI-ppm >  Empty Latent Image (Aspect Ratio+)

ComfyUI Node: Empty Latent Image (Aspect Ratio+)

Class Name

EmptyLatentImageARAdvanced

Category
latent
Author
pamparamm (Account age: 2160 days)
Extension
ComfyUI-ppm
Latest Updated
7/19/2024
Github Stars
0.0K

How to Install ComfyUI-ppm

Install this extension via the ComfyUI Manager by searching for  ComfyUI-ppm
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-ppm in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Empty Latent Image (Aspect Ratio+) Description

Generate empty latent images with advanced aspect ratio control for AI art generation.

Empty Latent Image (Aspect Ratio+):

The EmptyLatentImageARAdvanced node is designed to generate empty latent images with advanced aspect ratio control, providing a flexible and efficient way to create latent space representations for AI art generation. This node allows you to specify both a primary and a base resolution, along with an aspect ratio, step size, and batch size, enabling the creation of latent images that can be tailored to specific artistic needs. By offering control over these parameters, the node helps in generating latent images that are optimized for various creative processes, ensuring that the resulting images align with the desired dimensions and quality.

Empty Latent Image (Aspect Ratio+) Input Parameters:

resolution

The resolution parameter defines the primary resolution of the latent image. It determines the overall size of the generated latent image. The value must be an integer, with a default of 512, a minimum of 16, and a maximum defined by MAX_RESOLUTION. The resolution can be adjusted in steps of 8. Higher resolutions result in larger and more detailed latent images, but also require more computational resources.

base_resolution

The base_resolution parameter sets the base resolution for the latent image, which is used as a reference for certain operations. Similar to the resolution parameter, it must be an integer with a default of 512, a minimum of 16, and a maximum defined by MAX_RESOLUTION. The base resolution can also be adjusted in steps of 8. This parameter is useful for maintaining consistency in image dimensions across different stages of the creative process.

ratio

The ratio parameter specifies the aspect ratio of the latent image. It is a floating-point value with a default of 1.0, a minimum defined by MIN_RATIO, and a maximum defined by MAX_RATIO, adjustable in steps of 0.001. The aspect ratio determines the proportional relationship between the width and height of the image, allowing for the creation of images with various shapes and orientations.

step

The step parameter controls the step size for calculating the dimensions of the latent image. It is an integer with a default value of 64, a minimum of 8, and a maximum of 128, adjustable in steps of 8. The step size influences the granularity of the dimension calculations, affecting the final size and structure of the latent image.

batch_size

The batch_size parameter defines the number of latent images to generate in a single batch. It is an integer with a default value of 1, a minimum of 1, and a maximum of 4096. This parameter is crucial for batch processing, enabling the generation of multiple latent images simultaneously, which can significantly speed up the workflow for large-scale projects.

Empty Latent Image (Aspect Ratio+) Output Parameters:

latent

The latent output parameter represents the primary latent image generated by the node. It is a tensor containing the latent space representation of the image, structured according to the specified resolution, aspect ratio, and batch size. This output is essential for further processing and manipulation in the AI art generation pipeline.

base_latent

The base_latent output parameter provides the base latent image, which serves as a reference or starting point for additional operations. Similar to the latent output, it is a tensor that reflects the base resolution and other specified parameters. This output is useful for maintaining consistency and coherence in the generated images, especially when multiple stages of processing are involved.

Empty Latent Image (Aspect Ratio+) Usage Tips:

  • Adjust the resolution and base_resolution parameters to match the desired output size and quality, keeping in mind the computational resources available.
  • Use the ratio parameter to experiment with different aspect ratios, which can help in creating unique and varied image compositions.
  • Set the step parameter to control the granularity of the dimension calculations, which can impact the final structure and detail of the latent image.
  • Increase the batch_size parameter for batch processing to generate multiple latent images simultaneously, optimizing the workflow for large-scale projects.

Empty Latent Image (Aspect Ratio+) Common Errors and Solutions:

Error: "Invalid resolution value"

  • Explanation: The resolution value provided is outside the allowed range.
  • Solution: Ensure that the resolution is an integer between 16 and MAX_RESOLUTION, and adjust it in steps of 8.

Error: "Invalid ratio value"

  • Explanation: The ratio value provided is outside the allowed range.
  • Solution: Ensure that the ratio is a floating-point number between MIN_RATIO and MAX_RATIO, and adjust it in steps of 0.001.

Error: "Invalid step value"

  • Explanation: The step value provided is outside the allowed range.
  • Solution: Ensure that the step is an integer between 8 and 128, and adjust it in steps of 8.

Error: "Invalid batch size"

  • Explanation: The batch size value provided is outside the allowed range.
  • Solution: Ensure that the batch size is an integer between 1 and 4096.

Empty Latent Image (Aspect Ratio+) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-ppm
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.