Run ComfyUI Easily with InstaSD

Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:

  • One-click deployment
  • Any model, any node
  • Powerful GPUs for rapid iteration
Get Started

Available Nodes

EmptyLatentImagePresets

Empty Latent Image Presets Node Documentation

Overview

The Empty Latent Image Presets node is a utility for generating empty latent images with predefined dimensions. It offers a straightforward way to create specific-sized latents which can later be populated with content through various operations within ComfyUI workflows. This node simplifies the process of setting up dimensions by providing a set of preset options, removing the need for manual input each time.

Functionality

  1. Generate Empty Latents: The core functionality of this node is to generate an empty latent image, which is essentially a placeholder that can be manipulated or infused with data in subsequent processing.

  2. Preset Dimensions: Users can choose from a range of common dimension presets to quickly set up the required size for their latents. This speeds up the process and reduces the chance of errors when entering custom dimensions manually.

  3. Batch Processing: The node also allows the creation of multiple latents at once through its batch size setting.

Inputs

Required Inputs

  • Dimensions: This input accepts a selection of dimension presets for the latent image. Each selection is labeled with the dimensions and its aspect ratio (e.g., '512 x 512 (1:1)', '768 x 512 (1.5:1)').

  • Invert: A boolean option to invert the dimensions. If enabled, the width and height are swapped, allowing for flexibility in the orientation of the latent image.

  • Batch Size: This input determines the number of latent images to be generated. Users can set this to create single or multiple latents at once, with a range from 1 to 4096.

Outputs

The node produces three outputs:

  1. Latent: The generated empty latent image(s) with the specified dimensions. This is ready to be used in subsequent steps in the workflow where actual image data may be encoded into it.

  2. Width: The width of the generated latents, in pixels, based on the dimensions preset and invert setting.

  3. Height: The height of the generated latents, in pixels, corresponding to the chosen preset and invert option.

Usage in ComfyUI Workflows

The Empty Latent Image Presets node is essential for setting up workflows that require specific latent image sizes. Some potential use cases include:

  • Starting Point for Image Processing: Use this node as the first step in workflows where image or video frames will be encoded into latents for further manipulation.

  • Placeholders for Advanced Techniques: Utilize the empty latents in processes such as image completion, where the latent acts as a canvas that is filled based on conditioning or auxiliary data.

  • Batch Operations: Efficiently create multiple latents for batch processing tasks, such as generating variations of an image or ensuring consistent input sizes for machine learning models.

Special Features

  • Preset Dimensions for Ease of Use: The inclusion of common dimension presets significantly speeds up the workflow setup and ensures consistency across different nodes and operations.

  • Inversion Option: The ability to invert dimensions increases flexibility in designing workflows, accommodating scenarios where landscape or portrait orientations might be required.

  • High Batch Capacity: With support for up to 4096 latents at once, this node is well-suited for workflows requiring high-throughput operations or large-scale image processing tasks.

Overall, the Empty Latent Image Presets node offers flexibility and efficiency for users needing structured and consistent setup of latent image spaces in their ComfyUI workflows.