Random LoRA Loader (EmAySee)
Roll a random one from your pool
- model
- clip
- model
- clip
- selected_lora_name
- selected_lora_index
LoRA roulette for when you're batch-generating and don't want every output wearing the same style hat. You fill up to ten LoRA slots from your loras folder, flip on the ones you want in the pool, and this node seeds a random choice, loads that one LoRA onto your model and CLIP, and tells you which one it picked. It's the "variety" cousin of a normal LoRA Loader, and it doubles as a nice discovery tool for a big lora library you've forgotten about.
How it works
Under the hood it's the standard ComfyUI LoRA path: it reads your loras directory into dropdowns, and when it fires it calls comfy.sd.load_lora_for_models exactly like the built-in loader does - so compatibility, strengths, and the merge mechanics are all the stock behavior, just randomized. The inputs that matter:
- model and clip - wire your checkpoint's model and CLIP in, same as any LoRA loader.
- strength_model and strength_clip (both default 1.0) - applied to whichever LoRA wins. This is where you keep a "gentle variety" roll by dropping strength to ~0.5.
- seed - reproducibility. Same seed, same pool, same pick.
- lora_name_1 through lora_name_10 - the dropdown slots, populated from your loras folder. Leave a slot at "None" to exclude it.
- lora_active_1 through lora_active_10 (default on) - per-slot kill switches. This is how you curate the pool without deleting the dropdown values.
Outputs: model and clip (the patched versions, wired into your sampler), plus selected_lora_name (STRING) and selected_lora_index (INT) so you can display or log what won.
The two things that'll surprise you
First, if both strengths are 0, or no active slots have a real LoRA selected, the node silently passes your model through untouched and reports "None". That's a feature (a clean bypass) but it can look like a no-op bug when you expected a roll. Second, the seed governs the choice, not the sampling - the whole point is reproducible LoRA selection, so set it and the same lora comes up every time. Turn it to "randomize" on the widget if you want a new pick per run.
Installing it
Part of ComfyUI_EmAySee_CustomNodes. ComfyUI Manager → search the pack → Install, or:
cd ComfyUI/custom_nodes
git clone https://github.com/EmAySee/ComfyUI_EmAySee_CustomNodes
# restart ComfyUI
It sits under EmAySee in the menu. No extra dependencies beyond what ComfyUI already ships for LoRA loading.
Bottom line
If you're running style-exploration batches or you have a hoard of LoRAs you never actually load, this is a fun, zero-risk way to make the graph pick for you. Keep the strengths low for subtle variety, or full strength if you want the roulette to be the whole point of the run.
Inputs (25)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | — | |
| clip | CLIP | — | |
| strength_model | FLOAT | 1.00-10–10 | — |
| strength_clip | FLOAT | 1.00-10–10 | — |
| seed | INT | 00–18446744073709550000 | — |
| lora_name_1 | COMBO | 1 options: None | |
| lora_active_1 | BOOLEAN | true | — |
| lora_name_2 | COMBO | 1 options: None | |
| lora_active_2 | BOOLEAN | true | — |
| lora_name_3 | COMBO | 1 options: None | |
| lora_active_3 | BOOLEAN | true | — |
| lora_name_4 | COMBO | 1 options: None | |
| lora_active_4 | BOOLEAN | true | — |
| lora_name_5 | COMBO | 1 options: None | |
| lora_active_5 | BOOLEAN | true | — |
| lora_name_6 | COMBO | 1 options: None | |
| lora_active_6 | BOOLEAN | true | — |
| lora_name_7 | COMBO | 1 options: None | |
| lora_active_7 | BOOLEAN | true | — |
| lora_name_8 | COMBO | 1 options: None | |
| lora_active_8 | BOOLEAN | true | — |
| lora_name_9 | COMBO | 1 options: None | |
| lora_active_9 | BOOLEAN | true | — |
| lora_name_10 | COMBO | 1 options: None | |
| lora_active_10 | BOOLEAN | true | — |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| model | MODEL | — |
| clip | CLIP | — |
| selected_lora_name | STRING | — |
| selected_lora_index | INT | — |