ComfyUI > Nodes > ComfyUI Easy Use > XY Inputs: CFG Scale //EasyUse

ComfyUI Node: XY Inputs: CFG Scale //EasyUse

Class Name

easy XYInputs: CFG Scale

Category
EasyUse/XY Inputs
Author
yolain (Account age: 1341days)
Extension
ComfyUI Easy Use
Latest Updated
2024-06-25
Github Stars
0.51K

How to Install ComfyUI Easy Use

Install this extension via the ComfyUI Manager by searching for ComfyUI Easy Use
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Easy Use 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 Inputs: CFG Scale //EasyUse Description

Facilitates exploration and fine-tuning of Classifier-Free Guidance scale in AI art generation.

XY Inputs: CFG Scale //EasyUse:

The easy XYInputs: CFG Scale node is designed to facilitate the exploration and fine-tuning of the Classifier-Free Guidance (CFG) scale in AI art generation. This node allows you to generate a range of CFG scale values, which can be used to control the strength of the guidance provided by the model during the generation process. By adjusting the CFG scale, you can influence the balance between creativity and adherence to the input prompt, enabling you to achieve the desired artistic effect. This node is particularly useful for artists who want to experiment with different CFG scales to find the optimal setting for their specific needs.

XY Inputs: CFG Scale //EasyUse Input Parameters:

batch_count

This parameter specifies the number of batches to be generated. It determines how many different CFG scale values will be created for experimentation. The minimum value is 0, the maximum value is 50, and the default value is 3. Adjusting this parameter allows you to control the granularity of the CFG scale exploration.

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. This parameter is crucial for setting the lower bound of the CFG scale range.

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. This parameter is essential for setting the upper bound of the CFG scale range.

XY Inputs: CFG Scale //EasyUse Output Parameters:

X or Y

This output parameter provides the generated CFG scale values along with the axis label. The output is a dictionary containing the axis label "advanced: CFG Scale" and the list of generated CFG scale values. This output is used to apply the generated CFG scale values in the AI art generation process, allowing you to see the effects of different CFG scales on the final output.

XY Inputs: CFG Scale //EasyUse Usage Tips:

  • Experiment with different ranges of CFG scales by adjusting the first_cfg and last_cfg parameters to find the optimal balance between creativity and adherence to the input prompt.
  • Use a higher batch_count to generate more CFG scale values for a finer exploration of the CFG scale range, which can help in identifying the most effective CFG scale for your specific artistic needs.

XY Inputs: CFG Scale //EasyUse Common Errors and Solutions:

"Expected # of conds per batch to be constant across batches"

  • Explanation: This error occurs when the number of conditions per batch is not consistent across all batches.
  • Solution: Ensure that the number of conditions per batch remains constant by verifying the input data and adjusting the batch size if necessary.

"CFG scale value out of range"

  • Explanation: This error occurs when the specified CFG scale value is outside the allowed range.
  • Solution: Check the first_cfg and last_cfg parameters to ensure they are within the valid range of 0.0 to 100.0. Adjust the values accordingly to fall within the acceptable range.

XY Inputs: CFG Scale //EasyUse Related Nodes

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