XY Inputs: Steps //EasyUse(XYplot_Steps)
XY Inputs: Steps //EasyUse node from ComfyUI-Easy-Use.
X Yplot Steps
Description
XY Inputs: Steps //EasyUse builds the X_Y data needed to run a parameter sweep over step-related sampler settings. It is part of the EasyUse/XY Inputs category and is meant to be connected to an XY Plot node.
The node takes a target_parameter selection and creates a list of step values by spreading batch_count samples across the selected range. The range is defined by one of the three first_* / last_* input pairs, corresponding to the sampler's total steps, start_step, and end_step settings. The unused range inputs are ignored.
Inputs
All inputs are required.
-
target_parameter(COMBO): Selects which step-related sampler field is swept. The available options determine whether the node uses thefirst_step/last_step,first_start_step/last_start_step, orfirst_end_step/last_end_steppair. -
batch_count(INT, default=3, min=0, max=50): How many values to generate for the chosen parameter. The values are spread between the selectedfirst_*andlast_*bounds. A value of0produces no points. -
first_step(INT, default=10, min=1, max=10000): Lower bound of the sweep whentarget_parameteris the total step count. -
last_step(INT, default=20, min=1, max=10000): Upper bound of the sweep whentarget_parameteris the total step count. -
first_start_step(INT, default=0, min=0, max=10000): Lower bound of the sweep whentarget_parameteris the sampler'sstart_step. -
last_start_step(INT, default=10, min=0, max=10000): Upper bound of the sweep whentarget_parameteris the sampler'sstart_step. -
first_end_step(INT, default=10, min=0, max=10000): Lower bound of the sweep whentarget_parameteris the sampler'send_step. -
last_end_step(INT, default=20, min=0, max=10000): Upper bound of the sweep whentarget_parameteris the sampler'send_step.
Outputs
X_Y(X_Y): A combined X/Y data object for XY Plot nodes. It contains the generated step values as the sweep axis; the other axis is left as a single placeholder so the sweep runs as a one-dimensional comparison.
Usage Notes
-
Connect the
X_Youtput to an XY Plot node to run the sweep. This node only generates the parameter list; it does not execute sampling. -
The generated values are intended to be used as the sampler's
steps,start_step, orend_stepparameter, depending ontarget_parameter. Make sure the values are valid for the sampler you use. For example,start_stepshould normally be less thanend_step, and both should be within the sampler's total step count. -
The range inputs for the non-selected target are ignored, so you can leave them at their defaults when sweeping a single parameter.
-
Use
batch_countto control the resolution of the sweep: more values produce a finer comparison but take longer to run.
Comments
Sign in with GitHub to join the discussion.