Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance AI model sampling with classifier-free guidance for nuanced result control.
The CFGGuider
node is designed to enhance the control and flexibility of your AI model's sampling process by incorporating classifier-free guidance (CFG). This node allows you to fine-tune the influence of positive and negative conditioning on the model's output, providing a more nuanced and precise control over the generated results. By adjusting the CFG parameters, you can effectively balance the desired attributes and mitigate unwanted features in the output, leading to higher quality and more targeted results. This node is particularly useful for AI artists who want to achieve specific artistic effects or adhere to particular stylistic guidelines in their generated content.
The model
parameter specifies the AI model that will be used for the sampling process. This is a required input and ensures that the node knows which model to apply the CFG techniques to.
The positive
parameter represents the conditioning that positively influences the model's output. This input helps guide the model towards desired features or attributes in the generated content. It is a required parameter and typically involves a set of conditions or prompts that the model should follow.
The negative
parameter is used to provide conditioning that negatively influences the model's output. This helps in reducing or eliminating unwanted features or attributes from the generated content. Like the positive
parameter, it is required and involves conditions or prompts that the model should avoid.
The cfg
parameter is a floating-point value that controls the strength of the classifier-free guidance. It determines how much influence the positive and negative conditioning will have on the model's output. The default value is 8.0, with a minimum of 0.0 and a maximum of 100.0. Adjusting this value allows you to fine-tune the balance between adhering to the positive conditioning and avoiding the negative conditioning.
The GUIDER
output is the result of the CFGGuider node's processing. It represents a guided model that has been adjusted according to the specified positive and negative conditioning and the CFG parameter. This output can be used in subsequent nodes to generate content that adheres to the desired attributes and avoids unwanted features.
cfg
values to find the optimal balance between positive and negative conditioning for your specific use case.positive
and negative
parameters to achieve more precise control over the model's output.model
parameter is missing or not correctly specified.model
parameter.positive
or negative
conditioning inputs are not correctly formatted or missing.cfg
parameter value is outside the allowed range (0.0 to 100.0).cfg
value to be within the specified range.© Copyright 2024 RunComfy. All Rights Reserved.