Nodes/ComfyUI Easy Use/EasyLoraSwitcher
ComfyUI Node Runs on cloud

EasyLoraSwitcher

A/B a stack of LoRAs by changing one number

By yolain·Created 3 years ago·Updated 8 days ago· 2,633
EasyLoraSwitcher
  • optional_lora_stack
  • lora_stack
  • lora_name
toggle
select1
num_loras1
lora_strength1.00
lora_1_nameNone
lora_2_nameNone
lora_3_nameNone
lora_4_nameNone
lora_5_nameNone
lora_6_nameNone
lora_7_nameNone
lora_8_nameNone
lora_9_nameNone
lora_10_nameNone
lora_11_nameNone
lora_12_nameNone
lora_13_nameNone
lora_14_nameNone
lora_15_nameNone
lora_16_nameNone
lora_17_nameNone
lora_18_nameNone
lora_19_nameNone
lora_20_nameNone
lora_21_nameNone
lora_22_nameNone
lora_23_nameNone
lora_24_nameNone
lora_25_nameNone
lora_26_nameNone
lora_27_nameNone
lora_28_nameNone
lora_29_nameNone
lora_30_nameNone
lora_31_nameNone
lora_32_nameNone
lora_33_nameNone
lora_34_nameNone
lora_35_nameNone
lora_36_nameNone
lora_37_nameNone
lora_38_nameNone
lora_39_nameNone
lora_40_nameNone
lora_41_nameNone
lora_42_nameNone
lora_43_nameNone
lora_44_nameNone
lora_45_nameNone
lora_46_nameNone
lora_47_nameNone
lora_48_nameNone
lora_49_nameNone
lora_50_nameNone

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_namelora_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.

CategoryEasyUse/Loaders

Inputs (55)

NameTypeDefaultDescription
toggleBOOLEAN
selectINT11–50
num_lorasINT11–50
lora_strengthFLOAT1.00-10–10
optional_lora_stackoptLORA_STACK
lora_1_nameoptCOMBONone1 options: None
lora_2_nameoptCOMBONone1 options: None
lora_3_nameoptCOMBONone1 options: None
lora_4_nameoptCOMBONone1 options: None
lora_5_nameoptCOMBONone1 options: None
lora_6_nameoptCOMBONone1 options: None
lora_7_nameoptCOMBONone1 options: None
lora_8_nameoptCOMBONone1 options: None
lora_9_nameoptCOMBONone1 options: None
lora_10_nameoptCOMBONone1 options: None
lora_11_nameoptCOMBONone1 options: None
lora_12_nameoptCOMBONone1 options: None
lora_13_nameoptCOMBONone1 options: None
lora_14_nameoptCOMBONone1 options: None
lora_15_nameoptCOMBONone1 options: None
lora_16_nameoptCOMBONone1 options: None
lora_17_nameoptCOMBONone1 options: None
lora_18_nameoptCOMBONone1 options: None
lora_19_nameoptCOMBONone1 options: None
lora_20_nameoptCOMBONone1 options: None
lora_21_nameoptCOMBONone1 options: None
lora_22_nameoptCOMBONone1 options: None
lora_23_nameoptCOMBONone1 options: None
lora_24_nameoptCOMBONone1 options: None
lora_25_nameoptCOMBONone1 options: None
lora_26_nameoptCOMBONone1 options: None
lora_27_nameoptCOMBONone1 options: None
lora_28_nameoptCOMBONone1 options: None
lora_29_nameoptCOMBONone1 options: None
lora_30_nameoptCOMBONone1 options: None
lora_31_nameoptCOMBONone1 options: None
lora_32_nameoptCOMBONone1 options: None
lora_33_nameoptCOMBONone1 options: None
lora_34_nameoptCOMBONone1 options: None
lora_35_nameoptCOMBONone1 options: None
lora_36_nameoptCOMBONone1 options: None
lora_37_nameoptCOMBONone1 options: None
lora_38_nameoptCOMBONone1 options: None
lora_39_nameoptCOMBONone1 options: None
lora_40_nameoptCOMBONone1 options: None
lora_41_nameoptCOMBONone1 options: None
lora_42_nameoptCOMBONone1 options: None
lora_43_nameoptCOMBONone1 options: None
lora_44_nameoptCOMBONone1 options: None
lora_45_nameoptCOMBONone1 options: None
lora_46_nameoptCOMBONone1 options: None
lora_47_nameoptCOMBONone1 options: None
lora_48_nameoptCOMBONone1 options: None
lora_49_nameoptCOMBONone1 options: None
lora_50_nameoptCOMBONone1 options: None

Outputs (2)

NameTypeDescription
lora_stackLORA_STACK
lora_name*