ComfyUI Node: XY Input: CFG Scale

Class Name

XY Input: CFG Scale

Category
Efficiency Nodes/XY Inputs
Author
jags111 (Account age: 3922days)
Extension
Efficiency Nodes for ComfyUI Version 2.0+
Latest Updated
2024-08-07
Github Stars
0.83K

How to Install Efficiency Nodes for ComfyUI Version 2.0+

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

XY Input: CFG Scale Description

Facilitates generation of CFG Scale values for AI art, streamlining parameter optimization and enhancing art creation efficiency.

XY Input: CFG Scale:

The XY Input: CFG Scale node is designed to facilitate the generation of a range of Configuration (CFG) Scale values for use in AI art generation workflows. This node is particularly useful for artists who want to experiment with different CFG Scale values to see how they affect the output of their models. By automating the creation of these values, the node helps streamline the process of fine-tuning and optimizing model parameters, ultimately saving time and effort. The main goal of this node is to provide a flexible and efficient way to explore the impact of varying CFG Scale values on generated art, enabling artists to achieve their desired results more effectively.

XY Input: CFG Scale Input Parameters:

batch_count

This parameter specifies the number of CFG Scale values to generate. It determines how many different CFG Scale values will be created within the specified range. The minimum value is 0, the maximum value is defined by the system limit (XYPLOT_LIM), and the default value is set to XYPLOT_DEF. Adjusting this parameter allows you to control the granularity of the CFG Scale values being tested.

first_cfg

This parameter sets the starting value of the CFG Scale range. It defines the initial CFG Scale value from which the range will begin. The minimum value is 0.0, the maximum value is 100.0, and the default value is 7.0. Modifying this parameter allows you to set the lower bound of the CFG Scale values to be generated.

last_cfg

This parameter sets the ending value of the CFG Scale range. It defines the final CFG Scale value at which the range will end. The minimum value is 0.0, the maximum value is 100.0, and the default value is 9.0. Adjusting this parameter allows you to set the upper bound of the CFG Scale values to be generated.

XY Input: CFG Scale Output Parameters:

X or Y

This output parameter provides the generated CFG Scale values. The output is a tuple containing the type of the XY input (CFG Scale) and a list of the generated CFG Scale values. These values can then be used in subsequent nodes or processes to evaluate their impact on the generated art. The output helps in systematically exploring different CFG Scale settings to find the optimal configuration for your specific needs.

XY Input: CFG Scale Usage Tips:

  • Experiment with different ranges for first_cfg and last_cfg to see how varying CFG Scale values affect your model's output.
  • Use a higher batch_count to generate more CFG Scale values for a finer-grained analysis of the impact on your art.
  • Combine this node with other XY Input nodes to explore multiple parameters simultaneously and understand their combined effects.

XY Input: CFG Scale Common Errors and Solutions:

XY Plot Error: '<value>' is not a number between `<min>` and `<max>` for CFG Scale.

  • Explanation: This error occurs when the input value for CFG Scale is not a valid number within the specified range.
  • Solution: Ensure that the input values for first_cfg and last_cfg are valid floating-point numbers within the range of 0.0 to 100.0.

XY Plot Error: 'batch_count' is not a valid integer.

  • Explanation: This error occurs when the batch_count parameter is not a valid integer.
  • Solution: Make sure that the batch_count is set to a valid integer value within the allowed range.

XY Plot Error: 'first_cfg' or 'last_cfg' is out of bounds.

  • Explanation: This error occurs when the first_cfg or last_cfg values are outside the allowed range of 0.0 to 100.0.
  • Solution: Adjust the first_cfg and last_cfg values to be within the specified range of 0.0 to 100.0.

XY Input: CFG Scale Related Nodes

Go back to the extension to check out more related nodes.
Efficiency Nodes for ComfyUI Version 2.0+
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.