Nodes/ComfyUI-JakeUpgrade/Guidance Default JK๐Ÿ‰
ComfyUI Node

Guidance Default JK๐Ÿ‰

The default Flux guidance node

By jakechaiยทCreated 2 years agoยทUpdated 3 months agoยท 147
Guidance Default JK๐Ÿ‰
    • GUIDANCE
    โ—„guidance3.5โ–บ

    Flux broke the CFG model in a way you feel every time you build a sampler: instead of a single CFG scale, the Flux guider wants a guidance value as a separate conditioning input, and the community settled on 3.5 as the sane default. Guidance Default JK is the node that makes that value a first-class part of your graph - one float input (guidance, default 3.5, range 0โ€“100), one GUIDANCE output. That's it. It's a named constant you can't accidentally lose in the wiring.

    Why does this node exist? Look at a Flux KSampler workflow and you'll see guidance threading into the guider while cfg stays on the sampler - two different numbers doing two different jobs. In Jake's image-generation group nodes (the "Image Gen Flux" family and the refine/common variants), the guidance value is expected on a dedicated wire, and this node is what produces it. The 3.5 default isn't random; it's the widely-cited starting point for Flux Dev guidance, with the caveat that some users argue it's a touch high and land on 3.0โ€“3.5 after A/B tests.

    The mechanism is a pure pass-through - no math, no clamping beyond the 0โ€“100 UI range, no model involved. That's the point: it keeps the "which guidance am I using" decision visible and editable in one spot instead of buried inside a sampler's settings or a hard-coded workflow value.

    When you'd reach for it: building a Flux workflow from scratch, editing one of Jake's Flux group-node workflows, or making your guidance value controllable from a group-node input. If you're on SD15/SDXL, guidance and CFG are the same dial and you don't need this node - skip it and set CFG on the sampler.

    Install. It's in ComfyUI-JakeUpgrade:

    cd ComfyUI/custom_nodes
    git clone https://github.com/jakechai/ComfyUI-JakeUpgrade
    cd ComfyUI-JakeUpgrade
    pip install -r requirements.txt
    

    Or ComfyUI Manager โ†’ "JakeUpgrade". Windows portable: install.bat or ../../../python_embeded/python.exe -s -m pip install -r requirements.txt. Restart.

    Gotchas: the GUIDANCE output type is FLOAT - if you're feeding a node that expects its own guidance widget rather than a wire, that's a mismatch to check first. And remember guidance โ‰  CFG for Flux: leave CFG handling on the sampler and only feed this into the guider's guidance input. Pack rules: LOAD_DEPRECATED_NODES = True if JK nodes report missing, disable ComfyUI MultiGPU per the README to avoid CUDA errors.

    Category๐Ÿ‰ JK/๐Ÿ“ฆ Misc

    Inputs (1)

    NameTypeDefaultDescription
    guidanceFLOAT3.50โ€“100Guidance scale for model conditioning

    Outputs (1)

    NameTypeDescription
    GUIDANCEFLOATโ€”