← See All Custom Node Packs

efficiency-nodes-comfyui

1473

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

NNLatentUpscale

NNLatentUpscale Node Documentation

Overview

The NNLatentUpscale node in the Efficiency Nodes for ComfyUI is a sophisticated tool designed to upscale SDXL latent images using a neural network. This node allows users to enhance the resolution of images with precision, making it particularly beneficial for workflows that demand high-quality outputs.

What This Node Does

The NNLatentUpscale node leverages a neural network to upscale latent images generated by SDXL models. This process involves increasing the resolution of the image while maintaining or even enhancing its quality. It's especially useful when working with outputs from Stable Diffusion models, offering a balance between detail preservation and upscaling.

Inputs

The NNLatentUpscale node accepts the following inputs:

  • Latent: This is the primary input, consisting of latent images that have been generated by the Stable Diffusion model.
  • Version: Users can specify the version of the model they are utilizing, with options including "SDXL" and "SD 1.x". Each version is associated with specific weight paths to ensure compatibility.
  • Upscale Factor: A float value that ranges from 1.0 to 2.0, with a default of 1.5. This factor determines the extent to which the latent image will be upscaled. Users can incrementally adjust it in steps of 0.01.

Outputs

The NNLatentUpscale node produces the following output:

  • Latent: The upscaled latent image as a result of the neural network processing. This output is ready to be further manipulated or processed within the ComfyUI framework.

Usage in ComfyUI Workflows

The NNLatentUpscale node can be integrated into various ComfyUI workflows that require latent image manipulation. Typically, it's applied after generating initial latent outputs to enhance their resolution significantly. This node can be a crucial part of workflows aiming for high-detail outcomes, as it efficiently boosts image quality without introducing significant artifacts.

Workflow Integration Example

  • High-Resolution Workflows: Use the NNLatentUpscale node to polish and upscale images before the final rendering steps in your workflow.
  • Detail Enhancement: In scenarios where fine details are paramount, such as in digital art or design workflows, this node helps in refining and better defining important details.

Special Features or Considerations

  • Device Optimization: The node automatically adjusts to the device capabilities, supporting float16 precision if the system allows, thereby optimizing performance.
  • Model Variants: Supports both "SDXL" and "SD 1.x" model versions, providing flexibility for different projects and existing setups.
  • Attention Mechanism: Utilizes neural network components like attention blocks which can improve the processing capability for complex images.

Understanding these details will help users effectively incorporate the NNLatentUpscale node into their projects, achieving superior image quality enhancements within the ComfyUI environment. Users are encouraged to refer to the Efficiency Nodes Wiki for more use cases and insights.