BatchLoraLoader(mki-批量LoRA加载)
BatchLoraLoader, the stack-friendly loader
- model
- clip
- MODEL
- CLIP
The core LoraLoader does one LoRA at a time. Want a character LoRA and a style LoRA and a detail-boosting LoRA? That's three loaders chained in a row, and every workflow you share needs them all kept in sync. BatchLoraLoader_makki (display name "BatchLoraLoader(mki-批量LoRA加载)") collapses that chain into a single node with up to 50 slots, each with its own LoRA name and its own model/CLIP strengths.
It does exactly the same math as chaining core loaders - it applies each selected LoRA sequentially to the model and CLIP via the same comfy.sd.load_lora_for_models call - so it's a convenience, not a magic trick. But for template workflows it's a real one: you set up the stack once, and testing a different combo becomes a couple of dropdowns instead of rewiring a chain.
The inputs that matter
The full list is huge (50 slots × 3 fields), so here's what you actually touch:
- model and clip - the checkpoint's MODEL and CLIP that everything gets applied to. These are required.
- loras_count - how many of the 50 slots are active. Default 3, max 50. This is the one that keeps the node sane: the pack's JS hides the widget rows beyond this number, so you're not staring at 47 empty dropdowns.
- loras_num - a nifty routing trick.
-1(default) loads all slots up toloras_count.0loads nothing - handy as a bypass switch. A positive number loads only that one slot (1-based), so you can flip between individual LoRAs in a stack without deleting anything. - lora_name_N / strength_model_N / strength_clip_N - the per-slot pair. Strengths default to 1.0 and can be negative; negative model strength is a legit trick for reducing whatever the LoRA adds.
Outputs are MODEL and CLIP, feeding straight into your sampler like any loader.
Little behaviors worth knowing
- Slots set to
Noneare skipped, and a slot with both strengths at 0 is skipped too - so you don't have to empty every unused slot. - If you set
loras_numhigher thanloras_count, it silently loads everything. That's a "load all" fail-safe, not a bug. - The node caches the last-loaded LoRA file, which makes iterating over a stack noticeably faster than the equivalent chain.
Installing and gotchas
Install via ComfyUI Manager (search "ComfyUI-MakkiTools"), or:
cd ComfyUI/custom_nodes
git clone https://github.com/MakkiShizu/ComfyUI-MakkiTools
cd ComfyUI-MakkiTools
pip install -r requirements.txt
Restart ComfyUI afterwards. A couple of real-world warnings:
- Stacking is additive, and it compounds fast. Three LoRAs at 1.0 each rarely look like "three LoRAs at 1.0" - they look like a melted image. Start your strengths around 0.4–0.7 and tune from there. The pack even lets you go negative, which is how you subtract an effect you over-applied in an earlier slot.
- LoRA order matters. The stack applies top-down, and later LoRAs see the already-modified model. Different orders give different results, so the order you list slots in is part of your recipe.
- If you load a workflow made before the pack's mid-2025 rename (nodes got
_makkisuffixes), ComfyUI may report this node missing - re-pull the pack and the mapping line up again.
It won't turn a bad checkpoint into a good one, and it doesn't train anything. But if you regularly run LoRA stacks, this is the kind of node that quietly removes friction from your whole setup.
Inputs (151)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | The diffusion model the LoRA will be applied to. LoRA将应用到的扩散模型。 | |
| clip | CLIP | The CLIP model the LoRA will be applied to. LoRA将应用到的CLIP模型。 | |
| loras_count | INT | 31–50 | — |
| loras_num | INT | -1-1–50 | — |
| lora_name_1 | COMBO | LoRA model 1 LoRA模型 1 | |
| strength_model_1 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_1 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_2 | COMBO | LoRA model 2 LoRA模型 2 | |
| strength_model_2 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_2 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_3 | COMBO | LoRA model 3 LoRA模型 3 | |
| strength_model_3 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_3 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_4 | COMBO | LoRA model 4 LoRA模型 4 | |
| strength_model_4 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_4 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_5 | COMBO | LoRA model 5 LoRA模型 5 | |
| strength_model_5 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_5 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_6 | COMBO | LoRA model 6 LoRA模型 6 | |
| strength_model_6 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_6 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_7 | COMBO | LoRA model 7 LoRA模型 7 | |
| strength_model_7 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_7 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_8 | COMBO | LoRA model 8 LoRA模型 8 | |
| strength_model_8 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_8 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_9 | COMBO | LoRA model 9 LoRA模型 9 | |
| strength_model_9 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_9 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_10 | COMBO | LoRA model 10 LoRA模型 10 | |
| strength_model_10 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_10 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_11 | COMBO | LoRA model 11 LoRA模型 11 | |
| strength_model_11 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_11 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_12 | COMBO | LoRA model 12 LoRA模型 12 | |
| strength_model_12 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_12 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_13 | COMBO | LoRA model 13 LoRA模型 13 | |
| strength_model_13 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_13 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_14 | COMBO | LoRA model 14 LoRA模型 14 | |
| strength_model_14 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_14 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_15 | COMBO | LoRA model 15 LoRA模型 15 | |
| strength_model_15 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_15 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_16 | COMBO | LoRA model 16 LoRA模型 16 | |
| strength_model_16 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_16 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_17 | COMBO | LoRA model 17 LoRA模型 17 | |
| strength_model_17 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_17 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_18 | COMBO | LoRA model 18 LoRA模型 18 | |
| strength_model_18 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_18 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_19 | COMBO | LoRA model 19 LoRA模型 19 | |
| strength_model_19 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_19 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_20 | COMBO | LoRA model 20 LoRA模型 20 | |
| strength_model_20 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_20 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_21 | COMBO | LoRA model 21 LoRA模型 21 | |
| strength_model_21 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_21 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_22 | COMBO | LoRA model 22 LoRA模型 22 | |
| strength_model_22 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_22 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_23 | COMBO | LoRA model 23 LoRA模型 23 | |
| strength_model_23 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_23 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_24 | COMBO | LoRA model 24 LoRA模型 24 | |
| strength_model_24 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_24 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_25 | COMBO | LoRA model 25 LoRA模型 25 | |
| strength_model_25 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_25 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_26 | COMBO | LoRA model 26 LoRA模型 26 | |
| strength_model_26 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_26 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_27 | COMBO | LoRA model 27 LoRA模型 27 | |
| strength_model_27 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_27 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_28 | COMBO | LoRA model 28 LoRA模型 28 | |
| strength_model_28 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_28 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_29 | COMBO | LoRA model 29 LoRA模型 29 | |
| strength_model_29 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_29 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_30 | COMBO | LoRA model 30 LoRA模型 30 | |
| strength_model_30 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_30 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_31 | COMBO | LoRA model 31 LoRA模型 31 | |
| strength_model_31 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_31 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_32 | COMBO | LoRA model 32 LoRA模型 32 | |
| strength_model_32 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_32 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_33 | COMBO | LoRA model 33 LoRA模型 33 | |
| strength_model_33 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_33 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_34 | COMBO | LoRA model 34 LoRA模型 34 | |
| strength_model_34 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_34 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_35 | COMBO | LoRA model 35 LoRA模型 35 | |
| strength_model_35 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_35 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_36 | COMBO | LoRA model 36 LoRA模型 36 | |
| strength_model_36 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_36 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_37 | COMBO | LoRA model 37 LoRA模型 37 | |
| strength_model_37 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_37 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_38 | COMBO | LoRA model 38 LoRA模型 38 | |
| strength_model_38 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_38 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_39 | COMBO | LoRA model 39 LoRA模型 39 | |
| strength_model_39 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_39 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_40 | COMBO | LoRA model 40 LoRA模型 40 | |
| strength_model_40 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_40 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_41 | COMBO | LoRA model 41 LoRA模型 41 | |
| strength_model_41 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_41 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_42 | COMBO | LoRA model 42 LoRA模型 42 | |
| strength_model_42 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_42 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_43 | COMBO | LoRA model 43 LoRA模型 43 | |
| strength_model_43 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_43 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_44 | COMBO | LoRA model 44 LoRA模型 44 | |
| strength_model_44 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_44 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_45 | COMBO | LoRA model 45 LoRA模型 45 | |
| strength_model_45 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_45 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_46 | COMBO | LoRA model 46 LoRA模型 46 | |
| strength_model_46 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_46 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_47 | COMBO | LoRA model 47 LoRA模型 47 | |
| strength_model_47 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_47 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_48 | COMBO | LoRA model 48 LoRA模型 48 | |
| strength_model_48 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_48 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
| lora_name_49 | COMBO | LoRA model 49 LoRA模型 49 | |
| strength_model_49 | FLOAT | 1.00-100–100 | How strongly to modify the diffusion model. This value can be negative. 修改扩散模型的强度。此值可以为负。 |
| strength_clip_49 | FLOAT | 1.00-100–100 | How strongly to modify the CLIP model. This value can be negative. 修改CLIP模型的强度。此值可以为负。 |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| MODEL | MODEL | The modified diffusion model. |
| CLIP | CLIP | The modified CLIP model. |