ComfyUI > Nodes > wlsh_nodes > Empty Latent by Ratio (WLSH)

ComfyUI Node: Empty Latent by Ratio (WLSH)

Class Name

Empty Latent by Ratio (WLSH)

Category
WLSH Nodes/latent
Author
wallish77 (Account age: 2229days)
Extension
wlsh_nodes
Latest Updated
2024-06-19
Github Stars
0.08K

How to Install wlsh_nodes

Install this extension via the ComfyUI Manager by searching for wlsh_nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter wlsh_nodes 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 by Ratio (WLSH) Description

Generate empty latent image tensor with specified aspect ratio and orientation for AI artists' precise latent space creation.

Empty Latent by Ratio (WLSH):

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.

Empty Latent by Ratio (WLSH) Input Parameters:

aspect

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".

direction

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.

shortside

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.

batch_size

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.

Empty Latent by Ratio (WLSH) Output Parameters:

latent

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.

width

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.

height

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.

Empty Latent by Ratio (WLSH) Usage Tips:

  • To create a square latent image, select the "1:1" aspect ratio and set the shortside to your desired dimension.
  • For a widescreen latent image, choose an aspect ratio like "16:9" and set the shortside to a value that fits your project requirements.
  • Use the batch_size parameter to generate multiple latent images at once, which can save time when working on projects that require several variations.

Empty Latent by Ratio (WLSH) Common Errors and Solutions:

Invalid aspect ratio

  • Explanation: The aspect ratio provided is not in the list of supported ratios.
  • Solution: Ensure that the aspect ratio is one of the following: "1:1", "6:5", "5:4", "4:3", "3:2", "16:10", "16:9", "19:9", "21:9", "43:18", "2:1", "3:1", or "4:1".

Shortside value out of range

  • Explanation: The shortside value is either below the minimum of 64 or above the system's maximum resolution.
  • Solution: Adjust the shortside value to be within the range of 64 to the system's maximum resolution.

Batch size out of range

  • Explanation: The batch size is either below the minimum of 1 or above the maximum of 64.
  • Solution: Set the batch size to a value between 1 and 64.

Empty Latent by Ratio (WLSH) Related Nodes

Go back to the extension to check out more related nodes.
wlsh_nodes
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.