ComfyUI  >  Nodes  >  ComfyUI Extra Samplers >  WarmupDecayCFGGuider

ComfyUI Node: WarmupDecayCFGGuider

Class Name

WarmupDecayCFGGuider

Category
sampling/custom_sampling/guiders
Author
Clybius (Account age: 1788 days)
Extension
ComfyUI Extra Samplers
Latest Updated
7/21/2024
Github Stars
0.1K

How to Install ComfyUI Extra Samplers

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

WarmupDecayCFGGuider Description

Enhances AI art generation by dynamically adjusting guidance strength for refined outputs.

WarmupDecayCFGGuider:

The WarmupDecayCFGGuider is a specialized node designed to enhance the sampling process in AI art generation by dynamically adjusting the classifier-free guidance (CFG) strength during the sampling process. This node introduces a warmup and decay mechanism, where the CFG strength starts at a lower value and gradually increases to a maximum value before decaying again. This approach helps in achieving more refined and controlled outputs by balancing the influence of positive and negative conditioning inputs over the sampling iterations. The primary benefit of using this node is the ability to fine-tune the guidance strength, leading to more nuanced and high-quality generated images.

WarmupDecayCFGGuider Input Parameters:

model

This parameter specifies the model to be used for the sampling process. It is essential as it defines the underlying architecture and weights that will generate the images.

positive

This parameter represents the positive conditioning input, which guides the model towards desired features in the generated images. It is crucial for steering the output towards specific characteristics or styles.

negative

This parameter represents the negative conditioning input, which helps the model avoid certain features or styles in the generated images. It is used to suppress unwanted characteristics in the output.

cfg_max

This parameter sets the maximum value for the classifier-free guidance (CFG) strength. The CFG strength influences how strongly the model adheres to the conditioning inputs. The default value is 12.0, with a minimum of 0.0 and a maximum of 100.0, adjustable in steps of 0.1 and rounded to 0.01. Higher values result in stronger adherence to the conditioning inputs.

cfg_min

This parameter sets the minimum value for the classifier-free guidance (CFG) strength. The default value is 1.0, with a minimum of 0.0 and a maximum of 100.0, adjustable in steps of 0.1 and rounded to 0.01. Lower values result in weaker adherence to the conditioning inputs, allowing for more creative freedom.

warmup_percent

This parameter defines the percentage of the total sampling iterations during which the CFG strength will increase from the minimum to the maximum value. The default value is 0.5, with a minimum of 0.01 and a maximum of 1.0, adjustable in steps of 0.01 and rounded to 0.01. This setting helps in gradually introducing the guidance strength, leading to smoother transitions and more controlled outputs.

WarmupDecayCFGGuider Output Parameters:

GUIDER

The output of this node is a GUIDER object, which encapsulates the configured guidance mechanism. This object is used in the subsequent sampling process to apply the dynamic CFG strength adjustments, ensuring that the generated images adhere to the specified conditioning inputs with the desired strength variations.

WarmupDecayCFGGuider Usage Tips:

  • Experiment with different cfg_max and cfg_min values to find the optimal balance between adherence to conditioning inputs and creative freedom in the generated images.
  • Adjust the warmup_percent to control how quickly the CFG strength ramps up. A lower value will result in a faster increase, which might be useful for more immediate guidance, while a higher value will provide a more gradual transition.
  • Use the positive and negative conditioning inputs strategically to guide the model towards desired features and away from unwanted characteristics, respectively.

WarmupDecayCFGGuider Common Errors and Solutions:

"Invalid model input"

  • Explanation: The model parameter is not correctly specified or is incompatible with the node.
  • Solution: Ensure that the model input is correctly specified and compatible with the WarmupDecayCFGGuider node.

"CFG strength out of bounds"

  • Explanation: The values for cfg_max or cfg_min are outside the allowed range.
  • Solution: Verify that cfg_max and cfg_min values are within the specified range (0.0 to 100.0) and adjust them accordingly.

"Warmup percent out of bounds"

  • Explanation: The warmup_percent value is outside the allowed range.
  • Solution: Ensure that the warmup_percent value is within the specified range (0.01 to 1.0) and adjust it as needed.

WarmupDecayCFGGuider Related Nodes

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