Visit ComfyUI Online for ready-to-use ComfyUI environment
Dynamic adjustment of classifier-free guidance scale for enhanced AI art generation output control.
The Pre CFG variable scaling node is designed to dynamically adjust the classifier-free guidance (CFG) scale during the denoising process in AI art generation. This node allows for a more nuanced and controlled application of the CFG scale, which can enhance the quality and specificity of the generated images. By varying the CFG scale based on certain parameters, this node helps in achieving a balance between creativity and adherence to the input conditions, leading to more refined and targeted outputs. The primary goal of this node is to provide a flexible mechanism to modulate the influence of the guidance scale, thereby improving the overall artistic output.
This parameter specifies the model to which the variable scaling will be applied. It is a required input and ensures that the node operates on the correct model instance.
This parameter sets the upper limit for the CFG scale. It determines the maximum influence the guidance can have during the denoising process. The default value is 80, with a minimum of 0.0 and a maximum of 1000.0. Adjusting this value can significantly impact the strength of the guidance applied.
This parameter sets the lower limit for the CFG scale. It defines the minimum influence the guidance can have. The default value is 4.5, with a minimum of 0.0 and a maximum of 10.0. This parameter helps in ensuring that the guidance does not become too weak.
This parameter controls the intensity of the scaling effect. It determines how strongly the scaling adjustments are applied. The default value is 0.5, with a range from 0.0 to 10.0. Modifying this value can fine-tune the balance between the original and scaled guidance.
This parameter specifies the sigma value at which the scaling effect should end. It helps in defining the progression of the scaling effect throughout the denoising process. The default value is 0.28, with a range from 0.0 to 1000.0.
This boolean parameter determines whether the scales should converge over time. If set to True, the scales will gradually converge, leading to a more consistent application of the guidance. The default value is True.
This boolean parameter specifies whether the mask should be inverted. If set to True, the areas defined by the mask will be inverted, altering the regions affected by the scaling. The default value is False.
This optional parameter allows for the connection of a mask. If only a mask is connected, the scale becomes a CFG scale of what is being masked. When a latent is connected, the mask defines what will be modified by the node.
This optional parameter allows for the connection of a latent. If a latent is connected, the scale becomes the maximum scale allowed in which to seek similarity.
The output parameter is the modified model with the applied variable scaling. This model will have the adjusted CFG scales based on the input parameters, leading to a more controlled and refined denoising process.
maximum_scale
and minimum_scale
to find the optimal balance for your specific artistic needs.strength
parameter to fine-tune the intensity of the scaling effect, especially if you notice that the guidance is either too strong or too weak.converging_scales
if you want a more consistent application of the guidance throughout the denoising process.input_mask
and input_latent
options to target specific areas of the image for scaling adjustments, allowing for more precise control over the final output.maximum_scale
or minimum_scale
values are set outside their allowed ranges.maximum_scale
is between 0.0 and 1000.0 and the minimum_scale
is between 0.0 and 10.0. Adjust the values accordingly.end_at_sigma
value is set outside its allowed range.end_at_sigma
value is between 0.0 and 1000.0. Adjust the value to fall within this range.invert_mask
parameter and ensure that the mask input is correctly connected and valid.© Copyright 2024 RunComfy. All Rights Reserved.