Visit ComfyUI Online for ready-to-use ComfyUI environment
Adjust gradients for conditioning precision in model outputs before Classifier-Free Guidance for refined control and creativity.
The Pre CFG gradient scaling node is designed to adjust the gradients of your model's conditioning and unconditioning outputs before the Classifier-Free Guidance (CFG) step. This node helps in fine-tuning the influence of the conditioning information on the final output, allowing for more precise control over the generated results. By scaling the gradients, you can enhance or diminish the effect of certain features, leading to more refined and targeted outputs. This is particularly useful in scenarios where you want to emphasize or de-emphasize specific aspects of the generated content, providing you with greater creative control and flexibility.
This parameter represents the model that will be used for gradient scaling. It is essential as it provides the base structure upon which the gradient adjustments will be applied.
This parameter sets the upper limit for the gradient scaling. It determines the maximum extent to which the gradients can be scaled. The default value is 80, with a minimum of 0.0 and a maximum of 1000.0. Adjusting this value allows you to control the intensity of the gradient scaling effect.
This parameter sets the lower limit for the gradient scaling. It determines the minimum extent to which the gradients can be scaled. The default value is 4.5, with a minimum of 0.0 and a maximum of 10.0. This helps in ensuring that the gradients are not scaled down too much, maintaining a baseline influence.
This parameter controls the overall strength of the gradient scaling effect. The default value is 0.5, with a minimum of 0.0 and a maximum of 10.0. Adjusting this value allows you to fine-tune the intensity of the gradient adjustments, providing a balance between the original and scaled gradients.
This parameter defines the sigma value at which the gradient scaling effect should end. The default value is 0.28, with a minimum of 0.0 and a maximum of 1000.0. This helps in controlling the duration of the gradient scaling effect, ensuring it is applied only within a specific range.
This boolean parameter determines whether the scales should converge over time. The default value is True. When enabled, the gradient scales will gradually converge, leading to a more uniform effect over time.
This boolean parameter determines whether the mask should be inverted. The default value is False. When enabled, the mask used for gradient scaling will be inverted, altering the areas where the scaling effect is applied.
The output is the modified model with the applied gradient scaling adjustments. This model will have its gradients scaled according to the specified parameters, resulting in a more controlled and refined output.
maximum_scale
and minimum_scale
parameters to find the optimal range for your specific use case.strength
parameter to balance the influence of the original and scaled gradients, ensuring the desired effect is achieved.converging_scales
for a more uniform gradient scaling effect over time, which can lead to smoother results.end_at_sigma
parameter to control the duration of the gradient scaling effect, ensuring it is applied only within the desired range.maximum_scale
or minimum_scale
values are outside the allowed range.maximum_scale
and minimum_scale
values to be within the specified range (0.0 to 1000.0 for maximum_scale
and 0.0 to 10.0 for minimum_scale
).strength
parameter value is outside the allowed range.strength
value is within the specified range (0.0 to 10.0).end_at_sigma
parameter value is outside the allowed range.end_at_sigma
value to be within the specified range (0.0 to 1000.0).© Copyright 2024 RunComfy. All Rights Reserved.