XY Inputs: Controlnet //EasyUse(XYplot_Control_Net)
XY Inputs: Controlnet //EasyUse node from ComfyUI-Easy-Use.
X Yplot Control Net
Description
Generates an X/Y input set for sweeping ControlNet parameters. It lets an XY Plot node test different ControlNet settings—strength, start percent, or end percent—while keeping the other ControlNet parameters fixed. The node uses one ControlNet model and one input image, and produces evenly spaced samples between the specified first and last values.
Inputs
Required
-
control_net_name(COMBO): The ControlNet model to use. The dropdown lists the ControlNet models available in the current workflow/environment. If the optionalcontrol_netinput is connected, that loaded model is used instead. -
image(IMAGE): The ControlNet input image. The same image is used for every generated sample in this XY run. -
target_parameter(COMBO): The ControlNet parameter to sweep. The available choices are the three parameters that have first/last value pairs below:strength,start_percent, andend_percent. -
batch_count(INT, default 3, min 1, max 30): The number of values to generate for the sweep. A larger count produces a finer grid but requires more samples when rendered by XY Plot.
Sweep range
-
first_strength/last_strength(FLOAT, default 0 / 1, min 0, max 10, step 0.01): Start and end values used whentarget_parameterisstrength. Conventional ControlNet strength range is 0 to 1, but higher values are accepted. -
first_start_percent/last_start_percent(FLOAT, default 0 / 1, min 0, max 1, step 0.01): Start and end values used whentarget_parameterisstart_percent.start_percentis the denoising step (as a fraction from 0 to 1) at which the ControlNet begins applying. -
first_end_percent/last_end_percent(FLOAT, default 0 / 1, min 0, max 1, step 0.01): Start and end values used whentarget_parameterisend_percent.end_percentis the denoising step at which the ControlNet stops applying.
Constant parameter values
These values apply to the parameters that are not being swept:
-
strength(FLOAT, default 1, min 0, max 10, step 0.01): The fixed ControlNet strength used when another parameter is selected astarget_parameter. -
start_percent(FLOAT, default 0, min 0, max 1, step 0.01): The fixed start percent used when another parameter is selected. -
end_percent(FLOAT, default 1, min 0, max 1, step 0.01): The fixed end percent used when another parameter is selected.
Optional
control_net(CONTROL_NET, optional): An already-loaded ControlNet object. Connect this when you want to use an existing loaded/modified model instead of loading bycontrol_net_name.
Outputs
X_Y(X_Y): The generated XY data for downstream plotting. Plug this output into an XY Plot node's XY input.
Usage Notes
-
Decide which single ControlNet parameter to test and set
target_parameterto the matching option. The corresponding first/last pair is used to createbatch_countevenly spaced values. The first and last values are inclusive, and intermediate values are evenly spaced. -
The plain parameters provide the non-swept values. For example, if
target_parameterisstart_percent, the sweep is controlled byfirst_start_percentandlast_start_percent, whilestrengthandend_percentstay fixed at their plain input values. -
start_percentandend_percentuse fractions of the denoising process:0is the beginning,1is the end. The end percent should normally be greater than or equal to the start percent for a valid ControlNet influence window. -
The input image is not varied by this node. If you need to compare ControlNet behavior across different reference images, use a separate mechanism before this node or perform multiple XY runs.
-
The node only builds the X/Y data; it does not run sampling itself. Use it together with an XY Plot node to render the grid.
Comments
Sign in with GitHub to join the discussion.