ComfyUI > Nodes > ComfyUI > CFGNorm

ComfyUI Node: CFGNorm

Class Name

CFGNorm

Category
advanced/guidance
Author
ComfyAnonymous (Account age: 763days)
Extension
ComfyUI
Latest Updated
2026-05-13
Github Stars
112.77K

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
  • 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

CFGNorm Description

Enhances AI model guidance by normalizing conditional and predicted outputs for consistent results in advanced scenarios.

CFGNorm:

The CFGNorm node is designed to enhance the guidance process in AI models by normalizing the conditional and predicted outputs during sampling. This node is particularly useful in advanced guidance scenarios where maintaining a balance between the conditioned and unconditioned outputs is crucial for generating high-quality results. By applying a normalization technique, CFGNorm ensures that the predicted text output is scaled appropriately, which helps in achieving more consistent and reliable outputs from the model. This node is experimental, indicating that it is at the forefront of innovation in model guidance techniques, offering you the opportunity to explore cutting-edge methods for improving model performance.

CFGNorm Input Parameters:

model

The model parameter represents the AI model that you wish to apply the CFGNorm technique to. This input is crucial as it serves as the foundation upon which the normalization process will be applied. The model is cloned internally to ensure that the original model remains unchanged during the execution of the node.

strength

The strength parameter controls the intensity of the normalization effect applied to the model's outputs. It is a floating-point value that can range from 0.0 to 100.0, with a default value of 1.0. A higher strength value increases the impact of the normalization, potentially leading to more pronounced adjustments in the model's output. This parameter allows you to fine-tune the balance between the conditioned and predicted outputs, enabling you to achieve the desired level of guidance in your results.

CFGNorm Output Parameters:

patched_model

The patched_model output is the result of applying the CFGNorm technique to the input model. This output is a modified version of the original model, with the normalization function integrated into its sampling process. The patched model is designed to produce outputs that are more consistent and aligned with the desired guidance, making it a valuable tool for generating high-quality results in AI applications.

CFGNorm Usage Tips:

  • Experiment with different strength values to find the optimal balance for your specific use case. Start with the default value and gradually increase or decrease it to observe the effects on the model's output.
  • Use CFGNorm in scenarios where maintaining a consistent relationship between conditioned and predicted outputs is critical. This can be particularly beneficial in tasks that require precise control over the model's guidance process.

CFGNorm Common Errors and Solutions:

Model cloning error

  • Explanation: This error may occur if there is an issue with cloning the input model, which is necessary for applying the CFGNorm technique.
  • Solution: Ensure that the input model is compatible with the cloning process and that there are no restrictions or limitations on model duplication.

Strength value out of range

  • Explanation: This error arises when the strength parameter is set outside its allowable range of 0.0 to 100.0.
  • Solution: Verify that the strength value is within the specified range and adjust it accordingly to prevent this error.

CFGNorm Related Nodes

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

CFGNorm