XY Inputs: CFG Scale //EasyUse(XYplot_CFG)
XY Inputs: CFG Scale //EasyUse node from ComfyUI-Easy-Use.
X Yplot CFG
Description
The XY Inputs: CFG Scale //EasyUse node generates a series of CFG (classifier-free guidance) scale values for use as an XY plot axis. It takes a start value, an end value, and a count, then outputs a packed X_Y value that can be consumed by an XY Plot node.
Inputs
batch_count
- Type:
INT - Default: 3
- Range: 0–50
Number of CFG values to generate. For batch_count > 1, the CFG values are evenly spaced between first_cfg and last_cfg. With the default settings, batch_count = 3, first_cfg = 7, and last_cfg = 9, the generated values are [7.0, 8.0, 9.0].
first_cfg
- Type:
FLOAT - Default: 7
- Range: 0–100
Starting CFG scale value for the series.
last_cfg
- Type:
FLOAT - Default: 9
- Range: 0–100
Ending CFG scale value for the series. This can be lower than first_cfg to produce a decreasing series.
Outputs
X_Y
- Type:
X_Y
The generated CFG scale series formatted as an X_Y value. Connect this output to an XY Plot node to vary CFG scale along one axis, or combine it with another XY Inputs node's output to drive both axes.
Usage Notes
- This node only builds XY plot data; it does not run sampling.
- Set
batch_countto at least 2 to create a meaningful range betweenfirst_cfgandlast_cfg. A value of 1 produces a single CFG value. - Because the output is an
X_Yobject, it should be passed to an XY Plot node rather than used directly as a numeric CFG value.
Comments
Sign in with GitHub to join the discussion.