DP Lora Random Strength Controller
Randomize 5 LoRA weights per run
- random_strengths
Finding the right LoRA strength is a fiddle, and it gets exponentially worse when you're stacking several. This node automates the search: for each of five LoRAs you set a min and a max, and every run it rolls a random strength inside that range. Queue a batch and you get a spread of weight combinations to eyeball, instead of manually nudging sliders one generation at a time.
It's a controller node in DesertPixelAi's Desert Pixel pack, and - this is the important part - it's built to feed the pack's own multi-LoRA loader, not a stock one.
How it works
The node exposes three values per LoRA slot, times five: lora_01_strength / lora_01_min / lora_01_max, then _02, _03, _04, _05. The min and max (each 0–3) bound the random roll for that slot; the strength field is the current/base value. On each run it picks a fresh random strength between min and max for every slot at once.
It bundles all of that into a single output, random_strengths, of the custom type LORA_RANDOM_STRENGTHS. That type is the whole catch: it doesn't plug into a normal LoraLoader. It's designed to connect to the matching Desert Pixel loader - DP Five Lora Random - which reads the rolled strengths and applies them to the five LoRAs it loads. Think of this node as the dice and the loader as the hand that plays them.
The inputs and outputs that matter
Per active slot, the two that count are min and max - they define how wild the randomization gets. Set a tight range (say 0.7–0.9) to explore around a known-good weight, or a wide one (0.2–1.2) to see what a LoRA does across its whole usable band. Slots you aren't using can be left at defaults; they only matter if the loader has a LoRA in that position.
The single output goes to DP Five Lora Random. That's the only place it goes.
How to install it
ComfyUI Manager: search Desert Pixel, install, restart. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/DesertPixelAi/ComfyUI-Desert-Pixel-Nodes
Restart ComfyUI. No downloads for the node - your LoRAs live in ComfyUI/models/loras as usual. Under the DP category.
Common issues & troubleshooting
The output won't connect to your LoRA loader. It won't - LORA_RANDOM_STRENGTHS is a proprietary type that only the Desert Pixel loader (DP Five Lora Random) accepts. If you're using a stock LoraLoader or someone else's stack, this node can't drive it. Use the matching DP loader.
Strengths aren't changing between runs. Randomization fires on each queue, but if your seed/control widgets are set so nothing re-executes, the graph may be serving a cached result. Make sure the run actually re-runs, and confirm min ≠ max for the slots you care about - if min equals max, the "random" value is pinned.
A LoRA is blowing out the image. Your max is too high. Strengths above ~1.2 stack fast when you're running several LoRAs at once; pull the ranges down. Over-baked, high-contrast, "fried" output is the classic sign of total LoRA weight running too hot.
Inputs (15)
| Name | Type | Default | Description |
|---|---|---|---|
| lora_01_strength | FLOAT | 1.000–3 | — |
| lora_01_min | FLOAT | 0.000–3 | — |
| lora_01_max | FLOAT | 1.000–3 | — |
| lora_02_strength | FLOAT | 1.000–3 | — |
| lora_02_min | FLOAT | 0.000–3 | — |
| lora_02_max | FLOAT | 1.000–3 | — |
| lora_03_strength | FLOAT | 1.000–3 | — |
| lora_03_min | FLOAT | 0.000–3 | — |
| lora_03_max | FLOAT | 1.000–3 | — |
| lora_04_strength | FLOAT | 1.000–3 | — |
| lora_04_min | FLOAT | 0.000–3 | — |
| lora_04_max | FLOAT | 1.000–3 | — |
| lora_05_strength | FLOAT | 1.000–3 | — |
| lora_05_min | FLOAT | 0.000–3 | — |
| lora_05_max | FLOAT | 1.000–3 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| random_strengths | LORA_RANDOM_STRENGTHS | — |