EasyLoraSwitcher
A/B a stack of LoRAs by changing one number
- optional_lora_stack
- lora_stack
- lora_name
Say you've got ten LoRAs you're evaluating and you want to flip between them without rewiring anything. easy loraSwitcher lets you load a whole list into one node and then pick which one is active with a single index. Change select from 3 to 7, run again, and you're now testing LoRA #7. Nobody's dragging loaders around.
It's a loaders-category node in ComfyUI-Easy-Use, and it's a clever little thing: instead of stacking every LoRA (which applies all of them at once), it selects exactly one from the list. That "switch, don't stack" behaviour is what the name promises, and it's exactly what you want when you're comparing LoRAs rather than combining them.
Why you'd reach for it
Two solid use cases. First, comparison: park your candidate LoRAs in the slots, then step through them by number to see which suits a prompt - much faster than swapping a loader's dropdown and losing your place. Second, and this is where it shines, XY plots: because the active LoRA is chosen by an integer, you can drive select from an XY-plot axis and generate a grid of the same prompt across a dozen different LoRAs automatically. That's a genuinely nice trick for building a LoRA cheat-sheet.
How it works
You set num_loras to however many slots you want visible, fill those slots with LoRA files, and the select index decides which single one gets applied at lora_strength. The toggle boolean lets you disable the whole node (pass through with no LoRA) without unwiring it. Its output is a LORA_STACK containing just the chosen LoRA, so it plugs into anything that accepts a stack - including the optional_lora_stack input on the Easy-Use loaders. It also emits the selected LoRA's name, which is handy for labelling an XY grid.
The inputs and outputs that matter
select- which LoRA is active (1-based). The number you actually change, or drive from an XY axis.num_loras- how many slots to show (up to 50).lora_strength- the strength applied to whichever one is selected.toggle- on/off for the whole node.lora_1_name…lora_N_name- the slots themselves.optional_lora_stack- chain another stack in ahead of this one.
Outputs: lora_stack (feed it to a loader or an Apply LoRA Stack node) and lora_name (the selected name, as text).
Installing it
ComfyUI Manager: search ComfyUI Easy Use, install, restart. Or cd ComfyUI/custom_nodes && git clone https://github.com/yolain/ComfyUI-Easy-Use, install requirements (install.bat / pip install -r requirements.txt), restart. No extra dependencies; it just needs your LoRA files in the usual models/loras folder.
Where people trip
The one that catches everyone: select is 1-based, not 0-based - index 1 is the first LoRA, so if you're used to zero-indexing you'll be off by one. Second, remember it applies one LoRA, not the stack - if you actually want several LoRAs at once, use easy loraStack instead; this node is for switching between them. Third, the lora_stack output does nothing on its own until it reaches something that consumes a stack (a loader's optional_lora_stack, or an apply-stack node) - plugging it into thin air is a common "why isn't my LoRA loading" moment.
Inputs (55)
| Name | Type | Default | Description |
|---|---|---|---|
| toggle | BOOLEAN | — | |
| select | INT | 11–50 | — |
| num_loras | INT | 11–50 | — |
| lora_strength | FLOAT | 1.00-10–10 | — |
| optional_lora_stackopt | LORA_STACK | — | |
| lora_1_nameopt | COMBO | None | 1 options: None |
| lora_2_nameopt | COMBO | None | 1 options: None |
| lora_3_nameopt | COMBO | None | 1 options: None |
| lora_4_nameopt | COMBO | None | 1 options: None |
| lora_5_nameopt | COMBO | None | 1 options: None |
| lora_6_nameopt | COMBO | None | 1 options: None |
| lora_7_nameopt | COMBO | None | 1 options: None |
| lora_8_nameopt | COMBO | None | 1 options: None |
| lora_9_nameopt | COMBO | None | 1 options: None |
| lora_10_nameopt | COMBO | None | 1 options: None |
| lora_11_nameopt | COMBO | None | 1 options: None |
| lora_12_nameopt | COMBO | None | 1 options: None |
| lora_13_nameopt | COMBO | None | 1 options: None |
| lora_14_nameopt | COMBO | None | 1 options: None |
| lora_15_nameopt | COMBO | None | 1 options: None |
| lora_16_nameopt | COMBO | None | 1 options: None |
| lora_17_nameopt | COMBO | None | 1 options: None |
| lora_18_nameopt | COMBO | None | 1 options: None |
| lora_19_nameopt | COMBO | None | 1 options: None |
| lora_20_nameopt | COMBO | None | 1 options: None |
| lora_21_nameopt | COMBO | None | 1 options: None |
| lora_22_nameopt | COMBO | None | 1 options: None |
| lora_23_nameopt | COMBO | None | 1 options: None |
| lora_24_nameopt | COMBO | None | 1 options: None |
| lora_25_nameopt | COMBO | None | 1 options: None |
| lora_26_nameopt | COMBO | None | 1 options: None |
| lora_27_nameopt | COMBO | None | 1 options: None |
| lora_28_nameopt | COMBO | None | 1 options: None |
| lora_29_nameopt | COMBO | None | 1 options: None |
| lora_30_nameopt | COMBO | None | 1 options: None |
| lora_31_nameopt | COMBO | None | 1 options: None |
| lora_32_nameopt | COMBO | None | 1 options: None |
| lora_33_nameopt | COMBO | None | 1 options: None |
| lora_34_nameopt | COMBO | None | 1 options: None |
| lora_35_nameopt | COMBO | None | 1 options: None |
| lora_36_nameopt | COMBO | None | 1 options: None |
| lora_37_nameopt | COMBO | None | 1 options: None |
| lora_38_nameopt | COMBO | None | 1 options: None |
| lora_39_nameopt | COMBO | None | 1 options: None |
| lora_40_nameopt | COMBO | None | 1 options: None |
| lora_41_nameopt | COMBO | None | 1 options: None |
| lora_42_nameopt | COMBO | None | 1 options: None |
| lora_43_nameopt | COMBO | None | 1 options: None |
| lora_44_nameopt | COMBO | None | 1 options: None |
| lora_45_nameopt | COMBO | None | 1 options: None |
| lora_46_nameopt | COMBO | None | 1 options: None |
| lora_47_nameopt | COMBO | None | 1 options: None |
| lora_48_nameopt | COMBO | None | 1 options: None |
| lora_49_nameopt | COMBO | None | 1 options: None |
| lora_50_nameopt | COMBO | None | 1 options: None |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| lora_stack | LORA_STACK | — |
| lora_name | * | — |