ComfyUI > Nodes > Raffle > Curved Rescale CFG (Raffle)

ComfyUI Node: Curved Rescale CFG (Raffle)

Class Name

CurvedRescaleCFG

Category
advanced/model
Author
rainlizard (Account age: 3821days)
Extension
Raffle
Latest Updated
2025-11-23
Github Stars
0.03K

How to Install Raffle

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

Curved Rescale CFG (Raffle) Description

Enhances CFG control in AI image models using dynamic bell curve rescaling for refined outputs.

Curved Rescale CFG (Raffle):

The CurvedRescaleCFG node is designed to enhance the control over the conditional guidance scale (CFG) in AI models, particularly in the context of image generation. This node introduces a dynamic rescaling mechanism that adapts the CFG based on a bell curve, allowing for more nuanced adjustments throughout the generation process. By incorporating parameters such as curve peak position and sharpness, it provides a flexible approach to modulating the influence of conditional inputs over the course of the model's operation. This can lead to more refined outputs, as the node effectively balances the conditional and unconditional components of the model's predictions, ensuring that the generated content aligns more closely with the desired artistic intent.

Curved Rescale CFG (Raffle) Input Parameters:

model

The model parameter represents the AI model that will be modified by the CurvedRescaleCFG node. It is essential as it serves as the foundation upon which the rescaling adjustments are applied. This parameter does not have specific minimum, maximum, or default values, as it depends on the model being used in your workflow.

multiplier

The multiplier is a floating-point value that determines the extent to which the rescaled CFG influences the model's output. It ranges from 0.0 to 1.0, with a default value of 0.7. A higher multiplier increases the impact of the rescaled CFG, potentially leading to outputs that are more closely aligned with the conditional inputs.

curve_peak_position

This parameter specifies the position of the peak of the bell curve used in the rescaling process. It is a floating-point value that typically ranges from 0.0 to 1.0, indicating the point in the generation process where the CFG influence is maximized. Adjusting this parameter allows you to control when the conditional guidance is most prominent.

curve_sharpness

The curve_sharpness parameter controls the steepness of the bell curve. A higher value results in a sharper peak, meaning the CFG influence is concentrated over a narrower range of the generation process. This parameter allows for fine-tuning the distribution of CFG influence, enhancing the precision of the output.

Curved Rescale CFG (Raffle) Output Parameters:

MODEL

The output of the CurvedRescaleCFG node is a modified version of the input model, denoted as MODEL. This output model incorporates the dynamic CFG rescaling adjustments, enabling it to produce outputs that better reflect the desired balance between conditional and unconditional inputs. The modified model is ready for further processing or direct use in generating content.

Curved Rescale CFG (Raffle) Usage Tips:

  • Experiment with different curve_peak_position values to find the optimal point in the generation process where the CFG influence should be strongest for your specific artistic goals.
  • Adjust the curve_sharpness to control the distribution of CFG influence. A sharper curve can lead to more pronounced effects at specific stages, while a gentler curve provides a more gradual influence.

Curved Rescale CFG (Raffle) Common Errors and Solutions:

"NoneType object is not iterable"

  • Explanation: This error may occur if one of the required inputs, such as cond, uncond, or sigma, is not provided or is None.
  • Solution: Ensure that all necessary inputs are correctly specified and not None before executing the node.

"IndexError: index out of range"

  • Explanation: This error might arise if the current_sigma_tensor is empty or improperly formatted.
  • Solution: Verify that the current_sigma_tensor is correctly initialized and contains valid data before it is used in the node.

Curved Rescale CFG (Raffle) Related Nodes

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