ComfyUI Node

Excluded Loras

The do-not-roll list for folder roulette

By Santodan·Created about a year ago·Updated 2 months ago· 28
Excluded Loras
  • merge_previous
  • excluded_loras
lora_1
lora_2
lora_3
lora_4
lora_5

Folder-based random LoRAs have one obvious flaw: the folder holds all your LoRAs, including the ones you'd rather never see win. The RandomLoRAFolder nodes have an exclude_loras_from_node input that accepts a LORA_LIST - and this tiny node is the thing that makes that list. Five dropdowns, one output, done.

It exists because the alternative is worse: hand-typing exclusion lists, or worse, emptying the folder. The node simply collects up to five LoRA names and hands them to the folder randomizer, which skips any file whose basename matches.

Inputs / outputs

  • lora_1lora_5 (required) - dropdowns of every LoRA ComfyUI knows about. Set the ones you want blacklisted; leave the rest "None."
  • merge_previous (optional) - feed another ExcludedLoras output in here and the lists combine, so you can daisy-chain more than five exclusions.
  • Output: excluded_loras - a LORA_LIST for the exclude_loras_from_node input on the folder selector nodes.

Wire it: ExcludedLoras.excluded_loras → RandomLoRAFolder.exclude_loras_from_node.

The fine print

  • Matching is by basename. The folder selectors strip paths and compare against the file's name. So style.safetensors matches regardless of which subfolder it's in - which is what you want when one file shows up in several folders. It also means two different files with identical names (impossible in one folder, possible across the tree) both get excluded. Fine in practice.
  • "None" slots are ignored. Don't feel obliged to fill all five.
  • It's exclusion, not preference. There's no "only roll these" mode here; that's what RandomLoRACustom's curated pool is for. This node is purely the blacklist half of the folder workflow.

Install

ComfyUI Manager (search "Santodan"), or:

cd ComfyUI/custom_nodes
git clone https://github.com/Santodan/santodan-custom-nodes-comfyui

Restart. No dependencies, no downloads. It reads your existing loras list and nothing else - about as low-stakes a node as this pack ships.

CategorySantodan/LoRA

Inputs (6)

NameTypeDefaultDescription
lora_1COMBO1 options: None
lora_2COMBO1 options: None
lora_3COMBO1 options: None
lora_4COMBO1 options: None
lora_5COMBO1 options: None
merge_previousoptLORA_LIST

Outputs (1)

NameTypeDescription
excluded_lorasLORA_LIST