Nodes/ComfyUI-Desert-Pixel-Nodes/DP Lora Random Strength Controller
ComfyUI Node

DP Lora Random Strength Controller

Randomize 5 LoRA weights per run

By DesertPixelAi·Created 2 years ago·Updated about a year ago· 25
DP Lora Random Strength Controller
    • random_strengths
    lora_01_strength1.00
    lora_01_min0.00
    lora_01_max1.00
    lora_02_strength1.00
    lora_02_min0.00
    lora_02_max1.00
    lora_03_strength1.00
    lora_03_min0.00
    lora_03_max1.00
    lora_04_strength1.00
    lora_04_min0.00
    lora_04_max1.00
    lora_05_strength1.00
    lora_05_min0.00
    lora_05_max1.00

    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.

    CategoryDP/utils

    Inputs (15)

    NameTypeDefaultDescription
    lora_01_strengthFLOAT1.000–3
    lora_01_minFLOAT0.000–3
    lora_01_maxFLOAT1.000–3
    lora_02_strengthFLOAT1.000–3
    lora_02_minFLOAT0.000–3
    lora_02_maxFLOAT1.000–3
    lora_03_strengthFLOAT1.000–3
    lora_03_minFLOAT0.000–3
    lora_03_maxFLOAT1.000–3
    lora_04_strengthFLOAT1.000–3
    lora_04_minFLOAT0.000–3
    lora_04_maxFLOAT1.000–3
    lora_05_strengthFLOAT1.000–3
    lora_05_minFLOAT0.000–3
    lora_05_maxFLOAT1.000–3

    Outputs (1)

    NameTypeDescription
    random_strengthsLORA_RANDOM_STRENGTHS