ComfyUI  >  Nodes  >  ComfyUI >  Upscale Latent

ComfyUI Node: Upscale Latent

Class Name

LatentUpscale

Category
latent
Author
ComfyAnonymous (Account age: 598 days)
Extension
ComfyUI
Latest Updated
8/12/2024
Github Stars
45.9K

How to Install ComfyUI

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

Upscale Latent Description

Enhance AI art resolution with upscaling for improved image quality and detail using LatentUpscale node.

Upscale Latent:

The LatentUpscale node is designed to enhance the resolution of latent representations in your AI art projects. This node allows you to upscale the latent space, which is particularly useful for improving the quality and detail of generated images. By leveraging various upscaling methods, you can achieve different visual effects and levels of sharpness. The node also provides options for cropping, ensuring that the upscaled latent images fit your desired dimensions. This flexibility makes LatentUpscale a powerful tool for refining the output of generative models, enabling you to produce higher-resolution and more visually appealing results.

Upscale Latent Input Parameters:

samples

This parameter represents the latent samples that you want to upscale. It is the core input for the node, containing the latent space data that will be processed to enhance its resolution.

upscale_method

This parameter allows you to choose the method used for upscaling the latent samples. The available options are "nearest-exact", "bilinear", "area", "bicubic", and "bislerp". Each method offers a different approach to interpolation, affecting the sharpness and smoothness of the upscaled image. For example, "nearest-exact" is a simple method that can produce blocky results, while "bicubic" and "bislerp" provide smoother and more visually appealing outcomes.

width

This parameter specifies the target width for the upscaled latent samples. It accepts integer values with a default of 512, a minimum of 0, and a maximum defined by the system's maximum resolution. If set to 0, the width will be automatically calculated based on the height to maintain the aspect ratio.

height

This parameter specifies the target height for the upscaled latent samples. It accepts integer values with a default of 512, a minimum of 0, and a maximum defined by the system's maximum resolution. If set to 0, the height will be automatically calculated based on the width to maintain the aspect ratio.

crop

This parameter determines how the upscaled latent samples will be cropped. The available options are "disabled" and "center". When set to "disabled", no cropping is applied, and the entire upscaled image is used. When set to "center", the image is cropped to the center, which can be useful for focusing on the most important part of the image.

Upscale Latent Output Parameters:

LATENT

The output of the LatentUpscale node is the upscaled latent samples. This enhanced latent representation can be used in subsequent stages of your AI art pipeline to generate higher-resolution images with improved detail and quality.

Upscale Latent Usage Tips:

  • To achieve the best visual quality, experiment with different upscale methods. "Bicubic" and "bislerp" are generally good choices for smooth and high-quality upscaling.
  • If you need to maintain the aspect ratio of your latent samples, set either the width or height to 0. The node will automatically calculate the other dimension to preserve the aspect ratio.
  • Use the "center" crop method if you want to focus on the central part of the upscaled image, which is often the most important area.

Upscale Latent Common Errors and Solutions:

"Invalid upscale method"

  • Explanation: The selected upscale method is not one of the available options.
  • Solution: Ensure that you choose one of the following methods: "nearest-exact", "bilinear", "area", "bicubic", or "bislerp".

"Width and height cannot both be zero"

  • Explanation: Both the width and height parameters are set to 0, which is not allowed.
  • Solution: Set either the width or height to a non-zero value to enable the node to calculate the appropriate dimensions.

"Resolution exceeds maximum allowed"

  • Explanation: The specified width or height exceeds the system's maximum resolution.
  • Solution: Adjust the width and height parameters to values within the allowed range. Check the system's maximum resolution and ensure your values do not exceed it.

Upscale Latent Related Nodes

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