ComfyUI > Nodes > ComfyUI Extra Samplers > GeometricCFGGuider

ComfyUI Node: GeometricCFGGuider

Class Name

GeometricCFGGuider

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

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

GeometricCFGGuider Description

Enhance AI art generation sampling with geometric guidance for nuanced outputs.

GeometricCFGGuider:

The GeometricCFGGuider node is designed to enhance the sampling process in AI art generation by leveraging a geometric approach to classifier-free guidance (CFG). This node allows you to fine-tune the influence of different conditioning inputs, such as positive and negative prompts, to achieve more nuanced and controlled outputs. By adjusting the geometric alpha parameter, you can blend the effects of two positive conditions in a sophisticated manner, providing greater flexibility and precision in guiding the model's output. This node is particularly useful for artists looking to experiment with complex conditioning setups to achieve specific artistic effects.

GeometricCFGGuider 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 output.

cond1

This is the first conditioning input, typically representing a positive prompt or guidance. It influences the model's output by providing a desired direction or theme.

cond2

This is the second conditioning input, also usually a positive prompt. It works in conjunction with cond1 to further refine and guide the model's output.

negative

This conditioning input represents a negative prompt, which helps steer the model away from undesired features or themes in the output.

cfg

The classifier-free guidance scale, which determines the strength of the guidance applied. The default value is 8.0, with a minimum of 0.0 and a maximum of 100.0. Adjusting this value can significantly impact the model's adherence to the provided conditions.

geometric_alpha

This parameter controls the blending ratio between the two positive conditions (cond1 and cond2). The default value is 0.5, with a range from 0.0 to 1.0. A value closer to 0.0 gives more weight to cond1, while a value closer to 1.0 gives more weight to cond2.

GeometricCFGGuider Output Parameters:

GUIDER

The output is a GUIDER object, which encapsulates the configured guidance mechanism. This object is used in subsequent sampling steps to apply the specified conditions and guidance settings to the model's output.

GeometricCFGGuider Usage Tips:

  • Experiment with different values of geometric_alpha to find the optimal blend between your two positive conditions for the desired artistic effect.
  • Adjust the cfg parameter to control the strength of the guidance. Higher values can lead to more pronounced adherence to the conditions, while lower values allow for more creative freedom.
  • Use the negative conditioning input to exclude unwanted features from your output, helping to refine and focus the generated art.

GeometricCFGGuider Common Errors and Solutions:

"Invalid model input"

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

"Conditioning inputs not provided"

  • Explanation: One or more of the required conditioning inputs (cond1, cond2, negative) are missing.
  • Solution: Verify that all required conditioning inputs are provided and correctly specified.

"CFG value out of range"

  • Explanation: The cfg parameter is set outside the allowed range.
  • Solution: Adjust the cfg value to be within the range of 0.0 to 100.0.

"Geometric alpha value out of range"

  • Explanation: The geometric_alpha parameter is set outside the allowed range.
  • Solution: Adjust the geometric_alpha value to be within the range of 0.0 to 1.0.

GeometricCFGGuider 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.