ComfyUI_essentials
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
Available Nodes
SDXLEmptyLatentSizePicker+
SDXLEmptyLatentSizePicker+ Node Documentation
Overview
The SDXLEmptyLatentSizePicker+ node is part of the ComfyUI Essentials package which provides extra functionality not originally included in the main ComfyUI distribution. This node is designed to facilitate operations that require the creation of an empty latent tensor based on specific size requirements. It is useful for setting up initial latent layers that are compatible with the selected resolution in machine learning workflows.
Functionality
What This Node Does
The SDXLEmptyLatentSizePicker+ node allows users to select predefined sizes (in terms of dimensions) for latent spaces and generates an empty tensor with those dimensions. This is particularly useful when preparing input layers for networks that require specified input shapes, typically in generative AI workflows interacting with latent spaces.
Inputs
The node accepts the following inputs:
-
resolution
- Type: Dropdown Selection
- Description: Allows users to select from a predefined list of resolutions. Each resolution is described both in terms of its pixel dimensions (e.g.,
1024x1024) and a scale factor. - Default:
"1024x1024 (1.0)"
-
batch_size
- Type: Integer
- Description: Specifies the number of samples the latent tensor should accommodate.
- Default:
1 - Range:
1 - 4096
-
width_override
- Type: Integer
- Description: Allows users to override the width specified by the selected resolution. If set to zero, the width from the resolution is used.
- Default:
0
-
height_override
- Type: Integer
- Description: Allows users to override the height specified by the selected resolution. If set to zero, the height from the resolution is used.
- Default:
0
Outputs
The node produces the following outputs:
-
LATENT
- Description: The generated latent tensor which is an empty tensor structure configured to the selected size.
-
width
- Description: The actual width (in pixels) used to generate the latent tensor. It reflects the resolution or the width_override value if provided.
-
height
- Description: The actual height (in pixels) used to generate the latent tensor. It reflects the resolution or the height_override value if provided.
Use in ComfyUI Workflows
In ComfyUI workflows, the SDXLEmptyLatentSizePicker+ node is primarily used when users need to predefine latent space dimensions before passing the tensor into further processing or model layers. It is typically placed early in the workflow where the tensor's shape needs to be determined.
Example Use Case
A common use case would be to generate an empty latent space for an image generation model, such as a diffusion model, where specific input dimensions are required for the model to process its first pass.
Special Features and Considerations
- Resolution Presets: The node offers simplicity by providing a list of commonly used resolutions, making it easier to manage latent space dimensions without manual calculations.
- Override Capability: If specific custom dimensions are needed beyond the predefined list, users have flexibility with the
width_overrideandheight_overrideparameters. - Device Management: The node operates seamlessly by managing resource allocation on the processing device, ensuring efficient workflow integration.
In sum, SDXLEmptyLatentSizePicker+ is a versatile node that aids in the setup and configuration of latent spaces for generative AI models in the ComfyUI environment. Its ease of use and adaptability make it an essential component in preparing data and model inputs.