Academia SD Fast Switch ยท Toggle ๐๏ธ
Stop bypassing groups by hand โ flip the lever
If you've ever "flavoured" a workflow by manually right-clicking a dozen nodes and hitting Bypass to switch between two setups, this is the node that makes that a one-move thing. The Fast Switch ยท Toggle is the physical lever of AcademiaSD's A/B system: it enables one set of workflow groups, bypasses the other, and - without a single cable - moves every Fast Switch ยท Models node in the graph that's linked to it. The Models node is the two-slot output; the Toggle is the bit that actually makes everything move.
How it works
The Python half is almost a stub - it parses the switch_data widget and prints which side you flipped to the console. All the real work happens in your browser when you drag the knob. Flipping the lever rewrites ComfyUI's internal node mode flags (bypass, mute, or the normal run state) for every node inside the groups assigned to each side. That's exactly the state change you'd make by hand with right-click โ Bypass, just applied to a whole labelled group at once - the same trick rgthree's Fast Groups Bypasser popularized, but tied to a physical-looking switch.
The design detail that makes it usable: each group can be assigned to A, B, or โ. That third state is the point. โ means this switch never touches that group, so a branch can arm what it needs without you having to declare every group in the workflow. Set it up the lazy way: arrange the canvas exactly as you want one side, flip the lever there, and press the ๐ธ button - it assigns every group that's currently on to this side and everything bypassed to the other. No walking down a checkbox list.
One switch, one scope. Two Toggles in the same graph never fight each other; each owns its group assignments and its own follower Models nodes. The lever even shows a ๐ counter telling you how many Models nodes obey it.
Inputs and outputs
This node takes only one required input - switch_data, the serialized JSON state the UI maintains - and it has no outputs. That surprises people, but it's correct: the Toggle does its work at edit time, flipping node states on the canvas, not at queue time. Everything it does is visible in the graph around it.
Setting it up
The one real decision: which side should be the off state. The โ options let you pick Bypass (the node is skipped and inputs pass through) or Mute (skipped entirely) for the non-active side - bypass is the default and usually what you want for "turn this branch off." There's also "Apply on workflow load," which re-applies the active side every time you open the file. Leave that off and a freshly opened workflow starts with whatever states were last saved; turn it on if you always want the lever position honoured.
Install and gotchas
It ships with the comfyui_AcademiaSD pack, so Manager โ search "Academia SD" and install, or:
cd ComfyUI/custom_nodes
git clone https://github.com/AcademiaSD/comfyui_AcademiaSD
Restart and hard-refresh. No pip deps, no model files.
The gotcha to remember: assignments are keyed to group titles, not ids. Rename a group after assigning it and the switch silently stops controlling it; two groups sharing a title both get flipped together. Also, the lever only moves the groups you assigned or captured - a freshly dropped Toggle with nothing set yet does nothing until you assign or ๐ธ. If it seems dead, you probably haven't told it what to control yet.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| switch_data | STRING | {} | Serialized state of the switch. Managed by the node UI. |
Outputs (0)
No outputs