ComfyUI  >  Nodes  >  ComfyUI-AutomaticCFG >  Automatic CFG

ComfyUI Node: Automatic CFG

Class Name

Automatic CFG

Category
model_patches/Automatic_CFG/presets
Author
Extraltodeus (Account age: 3201 days)
Extension
ComfyUI-AutomaticCFG
Latest Updated
8/4/2024
Github Stars
0.3K

How to Install ComfyUI-AutomaticCFG

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

Automatic CFG Description

Enhance AI model performance and flexibility through dynamic configuration adjustments for artistic effects.

Automatic CFG:

Automatic CFG is a powerful node designed to enhance the performance and flexibility of AI models by dynamically adjusting configuration settings. This node is particularly useful for AI artists who want to fine-tune their models for specific tasks without delving into complex technical details. By leveraging advanced configuration techniques, Automatic CFG allows you to optimize model behavior, improve output quality, and experiment with different settings to achieve the desired artistic effects. The node provides a range of preset configurations and attention modifiers, making it easier to apply sophisticated adjustments to your models with minimal effort.

Automatic CFG Input Parameters:

model

The model parameter specifies the AI model that you want to apply the configuration settings to. This is a required input and serves as the base model that will be modified by the node. The parameter does not have default, minimum, or maximum values as it depends on the specific model you are working with.

hard_mode

The hard_mode parameter is a boolean option that determines the strictness of the automatic configuration. When set to True, the node applies a "hard" configuration, which enforces stricter settings for more pronounced effects. When set to False, a "soft" configuration is applied, which is more lenient and subtle. The default value is True.

boost

The boost parameter is a boolean option that, when enabled, enhances certain aspects of the model's performance. This can include skipping unconditional settings or applying additional boosts to the model's capabilities. The default value is True.

negative_strength

The negative_strength parameter is a float value that adjusts the strength of negative conditioning. This parameter is particularly useful for fine-tuning the model's response to negative inputs. It ranges from 0.0 to 5.0, with a default value of 1.0. The parameter allows for precise control over the model's behavior, making it easier to achieve the desired artistic effect.

Automatic CFG Output Parameters:

model

The model output parameter returns the modified AI model after the configuration settings have been applied. This output is crucial as it represents the enhanced model that you can use for your artistic projects. The modifications can include changes in attention mechanisms, dynamic configuration adjustments, and other optimizations that improve the model's performance and output quality.

Automatic CFG Usage Tips:

  • Experiment with the hard_mode and boost parameters to see how different configurations affect your model's output. This can help you find the optimal settings for your specific artistic needs.
  • Use the negative_strength parameter to fine-tune the model's response to negative inputs. This can be particularly useful for achieving specific artistic effects or correcting unwanted behaviors in the model's output.
  • Combine different attention modifiers to explore new creative possibilities and enhance the model's performance in unique ways.

Automatic CFG Common Errors and Solutions:

"Model input is missing"

  • Explanation: This error occurs when the model parameter is not provided.
  • Solution: Ensure that you have specified a valid AI model in the model input parameter.

"Invalid value for negative_strength"

  • Explanation: This error occurs when the negative_strength parameter is set to a value outside the allowed range (0.0 to 5.0).
  • Solution: Adjust the negative_strength parameter to a value within the specified range.

"Attention modifiers not applied"

  • Explanation: This error occurs when the attention modifiers are not correctly configured or enabled.
  • Solution: Verify that the attention modifiers are properly set up and enabled in the node's configuration.

"Configuration settings not applied"

  • Explanation: This error occurs when the configuration settings are not correctly applied to the model.
  • Solution: Double-check the input parameters and ensure that all required settings are correctly specified. If the issue persists, try resetting the node and reapplying the settings.

Automatic CFG Related Nodes

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