Nodes/ComfyUI Easy Use/XY Inputs: Flux Guidance //EasyUse
ComfyUI Node Runs on cloud

XY Inputs: Flux Guidance //EasyUse

FluxGuidance — sweep Flux guidance across an XY plot

By yolain·Created 3 years ago·Updated 13 days ago· 2,651
XY Inputs: Flux Guidance //EasyUse
    • X or Y
    batch_count3
    first_guidance1.00
    last_guidance3.50

    Trying to find the right guidance value for a Flux generation by eyeballing one image at a time is slow and unscientific. This node feeds an XY plot instead: it generates a range of guidance values so you can render a grid, same prompt and seed, only the guidance changing, and just look at which one you like. It's an axis-generator for easy XYPlot, aimed specifically at Flux's guidance parameter.

    Quick context on why "guidance" and not "CFG": Flux dev is a distilled model. Instead of classic classifier-free guidance (running the model twice, with and without the prompt), it bakes a guidance value into the model as a conditioning input. So the knob you tune on Flux is this guidance number, and this node exists to sweep it.

    How it works

    You tell it a start value, an end value, and how many steps. It produces an X_Y object describing that axis - a series of guidance values evenly spaced from first to last. Wire that into the X or Y input of easy XYPlot, run the plot, and you get a labeled grid of renders across the range.

    The inputs and outputs that matter

    • batch_count (default 3) - how many values to test along the axis. The number of cells in that row/column of your grid. Bump it to 5–7 for a finer sweep.
    • first_guidance (default 1) - the low end of the range.
    • last_guidance (default 3.5) - the high end. The 1 → 3.5 default is a reasonable Flux window; typical Flux dev guidance lives around 2.5–4, so you might sweep, say, 1.5 → 5 to bracket it.
    • X or Y (output, type X_Y) - feed this into an axis input of easy XYPlot.

    How to install it

    ComfyUI Manager: search ComfyUI-Easy-Use, install, restart. Manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/yolain/ComfyUI-Easy-Use
    

    then install.bat / pip install -r requirements.txt, restart. No models - but you obviously need a Flux model loaded in the workflow you're plotting.

    Common issues & troubleshooting

    It does nothing on its own. This is only an axis generator. Its output has to go into easy XYPlot, which is what actually runs the batch and assembles the grid. On its own it produces a description, not images.

    Guidance range doesn't suit your model. The 1–3.5 default is tuned for Flux dev. Other Flux variants and distilled checkpoints want different windows - Flux schnell and heavily-distilled models often behave best at low guidance, so a 1–3.5 sweep on them may all look similar. Adjust first/last to bracket where your model actually changes.

    Using it on a non-Flux model. This sweeps the Flux guidance input specifically. On a normal SD/SDXL model you want the CFG-scale XY input, not this one - Flux's guidance and classic CFG aren't the same knob.

    Grid takes forever. Every cell is a full generation. batch_count × your other axis = total renders. Keep the counts modest while you're narrowing the range, then do a fine sweep once you know the neighborhood.

    CategoryEasyUse/XY Inputs

    Inputs (3)

    NameTypeDefaultDescription
    batch_countINT30–50
    first_guidanceFLOAT1.000–100
    last_guidanceFLOAT3.500–100

    Outputs (1)

    NameTypeDescription
    X or YX_Y