ComfyUI > Nodes > ComfyUI > RescaleCFG

ComfyUI Node: RescaleCFG

Class Name

RescaleCFG

Category
advanced/model
Author
ComfyAnonymous (Account age: 598days)
Extension
ComfyUI
Latest Updated
2024-08-12
Github Stars
45.85K

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

RescaleCFG Description

Adjust AI model CFG scale for image generation quality control and artistic effects optimization.

RescaleCFG:

The RescaleCFG node is designed to adjust the classifier-free guidance (CFG) scale in AI models, which is a technique used to improve the quality of generated images by balancing between conditional and unconditional outputs. This node allows you to fine-tune the influence of the guidance scale, providing more control over the final output. By rescaling the CFG, you can achieve a more nuanced and refined result, enhancing the overall quality and coherence of the generated images. This node is particularly useful for advanced users who want to optimize their models for specific artistic effects or to achieve a desired level of detail and consistency in their AI-generated artwork.

RescaleCFG Input Parameters:

model

This parameter represents the AI model that you want to apply the rescale CFG function to. The model should be compatible with the rescaling function and capable of generating images based on conditional and unconditional inputs.

multiplier

The multiplier parameter is a floating-point value that determines the extent to which the rescaled CFG is applied. It allows you to control the balance between the original CFG and the rescaled CFG. The default value is 0.7, with a minimum value of 0.0 and a maximum value of 1.0. Adjusting this parameter can significantly impact the final output, with lower values leaning more towards the original CFG and higher values emphasizing the rescaled CFG.

RescaleCFG Output Parameters:

model

The output is the modified AI model with the rescale CFG function applied. This model will now generate images with the adjusted guidance scale, providing a more refined and controlled output based on the specified multiplier.

RescaleCFG Usage Tips:

  • Experiment with different multiplier values to find the optimal balance for your specific artistic needs. A value closer to 1.0 will apply more of the rescaled CFG, while a value closer to 0.0 will retain more of the original CFG.
  • Use this node in conjunction with other model adjustment nodes to fine-tune the overall performance and output quality of your AI model.

RescaleCFG Common Errors and Solutions:

"Model not compatible with rescale CFG function"

  • Explanation: This error occurs when the provided model does not support the rescale CFG function.
  • Solution: Ensure that you are using a model that is compatible with the rescale CFG function. Check the model's documentation or specifications to confirm compatibility.

"Invalid multiplier value"

  • Explanation: This error occurs when the multiplier value is outside the allowed range (0.0 to 1.0).
  • Solution: Adjust the multiplier value to be within the valid range. The value should be between 0.0 and 1.0, inclusive.

RescaleCFG 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.