ComfyUI > Nodes > ComfyUI-LCS > LCS Sharpness Calibrate

ComfyUI Node: LCS Sharpness Calibrate

Class Name

LCSSharpnessCalibrate

Category
LCS/calibration
Author
facok (Account age: 1139days)
Extension
ComfyUI-LCS
Latest Updated
2026-05-06
Github Stars
0.1K

How to Install ComfyUI-LCS

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

LCS Sharpness Calibrate Description

Automatically calibrates sharpness subspace for VAE by generating stimuli, encoding with VAE, and performing PCA for sharpness direction.

LCS Sharpness Calibrate:

The LCSSharpnessCalibrate node is designed to automatically calibrate the sharpness subspace for a Variational Autoencoder (VAE) by generating sinusoidal grating stimuli at various spatial frequencies. This process involves encoding these stimuli with the VAE and performing Principal Component Analysis (PCA) to identify the sharpness direction within a 64-dimensional patch space. The calibration data is cached based on the VAE fingerprint, ensuring efficient reuse. When optional lcs_data is provided, the node removes the color component during calibration, ensuring that the sharpness adjustments do not inadvertently affect the color subspace. This node is particularly beneficial for artists and developers working with VAEs who need to fine-tune the sharpness of generated images without altering their color characteristics.

LCS Sharpness Calibrate Input Parameters:

vae

The vae parameter represents the Variational Autoencoder model used for calibration. The calibration process is specific to each VAE, and the results are cached based on the VAE's unique fingerprint. This ensures that the sharpness calibration is tailored to the specific characteristics of the VAE model being used. There are no specific minimum, maximum, or default values for this parameter, as it depends on the VAE model you are working with.

lcs_data

The lcs_data parameter is optional and allows you to provide additional data to remove the color component during the calibration process. This ensures that any sharpness adjustments do not affect the color subspace, maintaining the original color integrity of the images. If not provided, the calibration will proceed without color component removal. There are no specific minimum, maximum, or default values for this parameter, as it is optional and depends on whether you want to include color component removal in the calibration process.

LCS Sharpness Calibrate Output Parameters:

sharpness_data

The sharpness_data output contains the calibrated data for the sharpness subspace. This data includes the PCA basis, mean, and sign, which are essential for understanding and manipulating the sharpness characteristics of images processed by the VAE. The sharpness_data is crucial for artists and developers who wish to apply precise sharpness adjustments to their images without affecting other image attributes, such as color.

LCS Sharpness Calibrate Usage Tips:

  • To ensure that sharpness adjustments do not affect the color of your images, provide lcs_data during calibration. This will remove the color component and maintain color integrity.
  • Utilize the cached calibration data for faster processing by reusing the same VAE model. This avoids recalibrating the sharpness subspace each time, saving time and computational resources.

LCS Sharpness Calibrate Common Errors and Solutions:

ERROR: No calibration data found. Run LCSLoadData with calibrate=True first.

  • Explanation: This error occurs when the node cannot find existing calibration data for the specified VAE model.
  • Solution: Ensure that you have run the LCSLoadData node with the calibrate=True option to generate the necessary calibration data before using the LCSSharpnessCalibrate node.

FileNotFoundError: [Errno 2] No such file or directory: 'sharpness_<fp>_grating.safetensors'

  • Explanation: This error indicates that the cached calibration data file is missing or the path is incorrect.
  • Solution: Verify that the path to the cached calibration data is correct and that the file exists. If not, rerun the calibration process to generate the necessary data.

LCS Sharpness Calibrate Related Nodes

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

LCS Sharpness Calibrate