Nodes/ComfyUI-JakeUpgrade/Guider Input Switch JK๐Ÿ‰
ComfyUI Node

Guider Input Switch JK๐Ÿ‰

Swap Flux guiders on the fly โ€” one boolean between two guidance models

By jakechaiยทCreated 2 years agoยทUpdated 3 months agoยท 146
Guider Input Switch JK๐Ÿ‰
  • guider_false
  • guider_true
  • guider_output
  • boolean
โ—„boolean_valuefalseโ–บ

Flux and its modern friends don't use a plain CFG scale the way SD15 did - they use a guider, a separate little model that shapes guidance, and you sometimes want two of them on tap. Guider Input Switch JK๐Ÿ‰ routes between two GUIDER wires based on a boolean, so swapping guidance strategy is a toggle.

It's a member of the "Noise | Guider | Sampler | Sigmas" switch set Jake added in v1.5.0 when the pack's Flux workflows landed - alongside the samplers and sigmas switches that make a Flux KSampler graph reconfigurable without touching its guts. If you've got a Flux workflow with a standard guider and a "double guidance" or distilled guidance variant, this is the clean way to choose.

How it works

The standard switch core:

if guider_true is not None and boolean_value:
    return (guider_true, boolean_value)
else:
    return (guider_false, boolean_value)
  • boolean_value - True โ†’ the "true" guider, False โ†’ the "false" one.
  • guider_false - required.
  • guider_true - optional; unplugged = pass-through.

Outputs: guider_output (GUIDER) and boolean.

The GUIDER type is what the advanced sampler stack expects - Flux's guidance model, the CFG-zero-star or distilled guiders, whatever your sampler setup constructs. As with all these switches, both guiders still get constructed every run; the switch only decides which one the sampler receives. Since guiders are small (a guidance model, not the main UNet), the extra cost is negligible.

Where you'd use it

  • Flux workflows: standard guider vs a low-guidance variant, toggled to compare quality and speed.
  • A "loose vs strict" master toggle where the guider choice is part of it.
  • In JakeUpgrade's own Flux KSampler group nodes, which wire guidance through sub-graphs - the switch is how those stay toggleable.

It's niche - you only meet it if you've already gone down the advanced-sampler rabbit hole, which is exactly the audience that will appreciate not rebuilding the graph to compare guiders.

Install

Ships with ComfyUI-JakeUpgrade. ComfyUI Manager โ†’ search ComfyUI-JakeUpgrade, or:

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

No models of its own. Menu: ๐Ÿ‰ JK/๐Ÿ”€ Switch. Pack-level notes as usual: the IPAdapter Plus conflict warning from Manager is harmless replacement-folder noise, and switch nodes can be toggled off via ENABLED_MODULES in config.ini if you ever want a leaner palette.

Category๐Ÿ‰ JK/๐Ÿ”€ Switch

Inputs (3)

NameTypeDefaultDescription
boolean_valueBOOLEANfalseCondition to select between inputs (True=guider_true, False=guider_false)
guider_falseGUIDERGuider to return when condition is False
guider_trueoptGUIDERGuider to return when condition is True (optional)

Outputs (2)

NameTypeDescription
guider_outputGUIDERโ€”
booleanBOOLEANโ€”