ComfyUI > Nodes > ComfyUI-LatentDetailer > LatentDetailer

ComfyUI Node: LatentDetailer

Class Name

LatentDetailer

Category
latent/postprocess
Author
SparknightLLC (Account age: 588days)
Extension
ComfyUI-LatentDetailer
Latest Updated
2026-03-17
Github Stars
0.04K

How to Install ComfyUI-LatentDetailer

Install this extension via the ComfyUI Manager by searching for ComfyUI-LatentDetailer
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-LatentDetailer 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

LatentDetailer Description

Enhances AI-generated image detail and quality using advanced refinement techniques.

LatentDetailer:

The LatentDetailer node is designed to enhance the quality and detail of latent representations in AI-generated images. It builds upon the capabilities of the SpectralVAEDetailer, offering advanced techniques to refine and improve the visual output of AI models. This node is particularly beneficial for artists and developers looking to achieve higher fidelity and clarity in their generated images. By applying various detail enhancement methods, such as luma clarity and chroma scaling, the LatentDetailer ensures that the final output is not only visually appealing but also retains the intricate details that might otherwise be lost during the generation process. Its primary goal is to provide a robust tool for enhancing image quality, making it an essential component for anyone working with AI-generated visuals.

LatentDetailer Input Parameters:

hires_scale

The hires_scale parameter controls the scaling factor for high-resolution processing. It determines how much the image is upscaled during the detail enhancement process. The value ranges from 1.0 to 4.0, with a default of 1.0, where higher values result in more significant upscaling, potentially leading to finer details but at the cost of increased computational resources.

hires_strength

The hires_strength parameter dictates the intensity of the high-resolution detail enhancement. It ranges from 0.0 to 1.0, with a default of 0.0. A higher value increases the strength of the detail enhancement, making the image appear sharper and more defined.

hires_mask_strength

The hires_mask_strength parameter adjusts the influence of the importance mask during high-resolution processing. It ranges from 0.0 to 1.0, with a default of 0.0. This parameter helps in selectively applying detail enhancements to specific areas of the image, based on their importance.

protect_lows

The protect_lows parameter is used to safeguard low-frequency details in the image. It ranges from 0.0 to 1.0, with a default of 0.0. By setting this parameter, you can prevent the loss of essential low-frequency details during the enhancement process, ensuring a balanced output.

soft_clip_detail

The soft_clip_detail parameter enables soft clipping of high-frequency details to prevent over-enhancement. It is a boolean parameter, where enabling it applies a soft clipping function to the details, ensuring they remain within a visually pleasing range.

detail_chroma

The detail_chroma parameter controls the scaling of chroma channels during detail enhancement. It affects the color intensity of the details, with a default value of 1.0. Adjusting this parameter can enhance or reduce the color vibrancy of the details.

luma_clarity

The luma_clarity parameter enhances the clarity of the luminance channel, making the image appear sharper. It ranges from 0.0 to 1.0, with a default of 0.0. Increasing this value results in a clearer and more defined image.

boost_confidence

The boost_confidence parameter increases the confidence in the generated details, particularly in the luminance channel. It ranges from 0.0 to 1.0, with a default of 0.0. A higher value boosts the prominence of the details, making them more noticeable.

detail_strength

The detail_strength parameter determines the overall strength of the detail enhancement applied to the image. It can be set to any float value, with a default of 0.0. Adjusting this parameter allows you to control the intensity of the detail enhancement.

mid_strength

The mid_strength parameter controls the injection of mid-frequency details into the image. It ranges from 0.0 to any positive float value, with a default of 0.0. This parameter helps in balancing the overall detail distribution in the image.

cfg

The cfg parameter, or configuration scale, influences the overall configuration of the detail enhancement process. It can be set to any float value, with a default of 1.0. This parameter allows for fine-tuning of the enhancement settings to achieve the desired output.

LatentDetailer Output Parameters:

out_latent

The out_latent parameter is the primary output of the LatentDetailer node. It contains the enhanced latent representation of the image, with improved details and clarity. This output is crucial for further processing or direct use in generating high-quality images, as it retains the intricate details enhanced by the node.

LatentDetailer Usage Tips:

  • To achieve the best results, start with a moderate hires_scale and gradually increase it while observing the impact on image quality and computational load.
  • Use the protect_lows parameter to maintain essential low-frequency details, especially when working with images that have significant low-frequency content.
  • Experiment with the detail_chroma parameter to adjust the color intensity of the details, which can significantly affect the overall appearance of the image.

LatentDetailer Common Errors and Solutions:

LATENT['samples'] was not a tensor.

  • Explanation: This error occurs when the input latent representation is not in the expected tensor format.
  • Solution: Ensure that the input to the LatentDetailer node is a valid tensor. Check the data type and format of the input to confirm it meets the expected requirements.

RuntimeError: Invalid hires_scale value.

  • Explanation: This error indicates that the hires_scale parameter is set outside the acceptable range.
  • Solution: Verify that the hires_scale value is between 1.0 and 4.0. Adjust the parameter to fall within this range to resolve the error.

LatentDetailer Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-LatentDetailer
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

LatentDetailer