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

Impact Pipe Input Switch JK๐Ÿ‰

Route between two Impact Pack pipes โ€” keep the detailer graph, swap the data bundle

By jakechaiยทCreated 2 years agoยทUpdated 3 months agoยท 146
Impact Pipe Input Switch JK๐Ÿ‰
  • pipe_false
  • pipe_true
  • BASIC_PIPE
  • BOOLEAN
โ—„boolean_valuefalseโ–บ

Impact Pack's BASIC_PIPE is a bundle - model, clip, vae, positive and negative conditioning all riding one wire so a detailer graph stays tidy. Impact Pipe Input Switch JK๐Ÿ‰ routes between two of those pipes based on a boolean, so you can swap the whole conditioning context feeding a detailer without rewiring five sockets.

It's the pipe member of JakeUpgrade's switch family, and JakeUpgrade leans on Impact Pack heavily - FaceDetailer-style refine is baked into its imgen and detailer workflows, and the README lists Impact Pack under required custom nodes. When two branches produce different pipes (different checkpoints, different prompts) and one detailer should be able to consume either, this is the bridge.

How it works

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

Outputs: BASIC_PIPE and BOOLEAN (the condition echoed).

The mechanism is the usual switch core - but the payload is interesting: a BASIC_PIPE is a tuple carrying model/CLIP/VAE/positive/negative. Routing a pipe routes the whole bundle at once. That means you can build "draft pipe" and "final pipe" (different checkpoints, different prompts) and have a single detailer run against whichever is active.

One honest caveat: the class is flagged DEPRECATED = True in the source. It still loads and works today, but if a future JakeUpgrade update stops shipping it, the family pattern (there are mesh, clip, conditioning switches) is the fallback - and you can always enable deprecated nodes via LOAD_DEPRECATED_NODES = True in the pack's config.ini. If the node ever goes missing from your palette, that's the first thing to check.

Install

Part of 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

You'll also need Impact Pack installed for the BASIC_PIPE type to exist at all. Menu: ๐Ÿ‰ JK/๐Ÿ”€ Switch. And the recurring pack note: if Manager flags a conflict with IPAdapter Plus, that's the replacement folder's noise - harmless.

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

Inputs (3)

NameTypeDefaultDescription
boolean_valueBOOLEANfalseโ€”
pipe_falseBASIC_PIPEโ€”
pipe_trueoptBASIC_PIPEโ€”

Outputs (2)

NameTypeDescription
BASIC_PIPEBASIC_PIPEโ€”
BOOLEANBOOLEANโ€”