Nodes/comfyui-latent-astronaut-suite/LoRA Loader Model Only Selector
ComfyUI Node

LoRA Loader Model Only Selector

One LoRA loader, sixteen files, picked by an index

By latentastronaut·Created 8 months ago·Updated 7 months ago· 2
LoRA Loader Model Only Selector
  • model
  • model
  • lora_name
  • count
index0
strength1.00
lora_0None
lora_1None
lora_2None
lora_3None
lora_4None
lora_5None
lora_6None
lora_7None
lora_8None
lora_9None
lora_10None
lora_11None
lora_12None
lora_13None
lora_14None
lora_15None

LoRA Loader Model Only Selector is a normal LoRA loader wearing a switcher's hat. You stuff up to sixteen LoRA files into its slots, then drive a single index input to pick which one actually loads. Wire that index to a For Loop Start's index output and you've got a batch workflow that iterates through every LoRA in your list automatically - no editing the graph between runs. This is the "model-only" variant, so it patches just the diffusion model, not the text encoder; the full LoraLoaderSelector sibling also touches CLIP.

How it works

Mechanically it's a thin wrapper around ComfyUI's own comfy.sd.load_lora_for_models. On each run it collects all sixteen lora_0 through lora_15 slots (dropdowns populated from your models/loras folder), counts the non-"None" ones, clamps index into range, and loads loras[index] at your chosen strength. If the slot is "None" or strength is 0, it passes the model through untouched. The node also caches the last-loaded LoRA weights in memory, so re-running with the same file skips re-reading it from disk.

Inputs and outputs

  • model (required) - the MODEL to patch
  • index - 0 to 15, which LoRA to load (required)
  • strength - −100 to 100, default 1.0 (required)
  • lora_0lora_15 - the LoRA pickers; leave unused ones at "None"

Outputs are model (patched), lora_name (the filename that loaded, or "None"), and count (how many non-None slots you configured). count is quietly useful - you can clamp a loop to it so you never iterate past the last real LoRA.

The README mentions a bypass toggle, but the shipped code doesn't actually expose one - to skip all LoRA loading, set strength to 0 or clear the slots, and the model passes through unchanged. Use the Reset All button on the node (added by the pack's JS) to zero out every slot at once.

Install

Via ComfyUI Manager (search "Latent Astronaut Suite") or:

cd ComfyUI/custom_nodes
git clone https://github.com/latentastronaut/comfyui-latent-astronaut-suite

Restart. No extra dependencies - it uses ComfyUI's built-in LoRA machinery.

Where people get burned

The classic trap is forgetting that this version doesn't touch CLIP. If you're on a model where the LoRA's text-encoder side matters (some SD/SDXL style LoRAs depend on CLIP changes), the model-only version will apply it wrong or barely at all - reach for LoraLoaderSelector instead. Also remember the dropdowns only show files already in ComfyUI/models/loras, so a fresh LoRA needs a refresh before it appears. And keep in mind all sixteen slots share one index - a common bug is leaving old files in low slots and wondering why "index 2" loads something you forgot about.

Categoryloaders/latent-astronaut

Inputs (19)

NameTypeDefaultDescription
modelMODEL
indexINT00–15Which LoRA to load (0-indexed)
strengthFLOAT1.00-100–100LoRA strength
lora_0optCOMBONone1 options: None
lora_1optCOMBONone1 options: None
lora_2optCOMBONone1 options: None
lora_3optCOMBONone1 options: None
lora_4optCOMBONone1 options: None
lora_5optCOMBONone1 options: None
lora_6optCOMBONone1 options: None
lora_7optCOMBONone1 options: None
lora_8optCOMBONone1 options: None
lora_9optCOMBONone1 options: None
lora_10optCOMBONone1 options: None
lora_11optCOMBONone1 options: None
lora_12optCOMBONone1 options: None
lora_13optCOMBONone1 options: None
lora_14optCOMBONone1 options: None
lora_15optCOMBONone1 options: None

Outputs (3)

NameTypeDescription
modelMODELModel with LoRA applied
lora_nameSTRINGName of loaded LoRA (or 'None')
countINTNumber of non-None LoRAs configured