ComfyUI > Nodes > ComfyUI > RenormCFG

ComfyUI Node: RenormCFG

Class Name

RenormCFG

Category
advanced/model
Author
ComfyAnonymous (Account age: 872days)
Extension
ComfyUI
Latest Updated
2025-05-13
Github Stars
76.71K

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

RenormCFG Description

Enhances control and flexibility of conditional generation processes in AI models by renormalizing the CFG scale.

RenormCFG:

The RenormCFG node is designed to enhance the control and flexibility of conditional generation processes in AI models. It focuses on renormalizing the classifier-free guidance (CFG) scale, which is a crucial parameter in guiding the model's output towards desired conditions while maintaining a balance with the original, unconditioned output. This node is particularly beneficial for AI artists and developers who wish to fine-tune the influence of conditions on the generated content, allowing for more precise and tailored outputs. By adjusting the CFG scale, RenormCFG helps in achieving a harmonious blend between the conditioned and unconditioned outputs, thus enhancing the overall quality and relevance of the generated results.

RenormCFG Input Parameters:

model

The model parameter represents the AI model that you wish to apply the renormalization process to. It is crucial as it serves as the foundation upon which the renormalization will be applied. This parameter does not have specific minimum, maximum, or default values, as it depends on the model you are working with. The model should be compatible with the renormalization process to ensure effective results.

cfg_trunc

The cfg_trunc parameter is used to specify the truncation level for the classifier-free guidance. This parameter influences how much of the guidance is applied, allowing you to control the strength of the conditioning. Adjusting this parameter can significantly impact the model's output, making it more or less aligned with the specified conditions. The exact range and default value for this parameter are not specified, but it should be set based on the desired level of guidance.

renorm_cfg

The renorm_cfg parameter is a function or method that applies the renormalization process to the CFG scale. It is essential for executing the renormalization logic, ensuring that the guidance scale is adjusted appropriately to achieve the desired balance between conditioned and unconditioned outputs. This parameter is crucial for the node's operation, as it defines the core functionality of the renormalization process.

RenormCFG Output Parameters:

patched_model

The patched_model is the output of the RenormCFG node, representing the AI model after the renormalization process has been applied. This output is significant as it reflects the adjusted model, now capable of generating outputs with a refined balance between conditioned and unconditioned influences. The patched_model is ready for use in generating content that aligns more closely with the specified conditions, providing enhanced control over the output's characteristics.

RenormCFG Usage Tips:

  • Experiment with different cfg_trunc values to find the optimal balance between conditioned and unconditioned outputs for your specific use case.
  • Ensure that the model you are using is compatible with the renormalization process to avoid unexpected results or errors.
  • Utilize the renorm_cfg function to customize the renormalization logic, tailoring it to better suit your artistic or project needs.

RenormCFG Common Errors and Solutions:

Model Incompatibility Error

  • Explanation: This error occurs when the provided model is not compatible with the renormalization process.
  • Solution: Verify that the model you are using supports the renormalization process and is correctly configured for it.

Invalid cfg_trunc Value

  • Explanation: This error arises when the cfg_trunc parameter is set to an invalid value that the node cannot process.
  • Solution: Ensure that the cfg_trunc value is within an acceptable range and adjust it based on the desired level of guidance.

Renorm_cfg Function Error

  • Explanation: This error happens when there is an issue with the renorm_cfg function, such as incorrect logic or incompatible operations.
  • Solution: Review the renorm_cfg function to ensure it is correctly implemented and compatible with the model and renormalization process.

RenormCFG 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 Playground, enabling artists to harness the latest AI tools to create incredible art.