Nodes/comfyui-adaptiveprompts/🌱 Scaled Seed Generator 🌱
ComfyUI Node

🌱 Scaled Seed Generator 🌱

Four seeds that drift at different speeds from one base

By AlectricitiΒ·Created 12 months agoΒ·Updated 23 days agoΒ· 87
🌱 Scaled Seed Generator 🌱
    • Output A
    • Output B
    • Output C
    • Output D
    β—„seed30000β–Ί
    β—„rate_a1.000β–Ί
    β—„rate_b1.000β–Ί
    β—„rate_c0.500β–Ί
    β—„rate_d0.125β–Ί

    Batch generation often wants a specific kind of controlled variety: you'd like composition to hold roughly steady across a run while color or fine detail keeps changing, but you still want everything deterministic and reproducible from one number instead of juggling four unrelated seeds by hand. ScaledSeedGenerator solves exactly that - one base seed goes in, four derived seeds come out, each changing at whatever rate you tell it to.

    How it works

    seed is the base every other output is ultimately controlled by. Each of rate_a through rate_d (0.001 to 1) sets how sensitive that particular output is to changes in the base seed. Per the node's own tooltip: a rate of 1 means that output changes on every single increment of the base seed, while a rate of 0.5 means it only changes every 2 increments - lower rates mean the derived seed drifts more slowly and holds stable for longer stretches of base-seed movement. The shipped defaults are already staggered for you: rate_a and rate_b at 1 (fully volatile, changes every run), rate_c at 0.5 (changes half as often), rate_d at 0.125 (barely moves at all) - a ready-made spread from "always different" to "nearly locked."

    This only does anything useful if you're actually incrementing the base seed between runs - batch generation, a queue with seed increment on, or manually stepping it. Feed it a fixed base seed that never changes and none of the four derived outputs will move either, regardless of how their rates are set.

    The inputs and outputs that matter

    • seed - the base seed everything else derives from.
    • rate_a, rate_b, rate_c, rate_d - how often each corresponding output changes relative to the base seed's increments, from 1 (every time) down to 0.001 (almost never).
    • Outputs: Output A through Output D, all INT - wire any of these straight into a seed input elsewhere in your graph (a KSampler, another generator's seed, and so on).

    How to install it

    It's part of the same pack as everything else here. Search comfyui-adaptiveprompts in ComfyUI Manager, or clone it manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Alectriciti/comfyui-adaptiveprompts
    

    Restart ComfyUI. No models to download, no extra dependencies.

    Common issues & troubleshooting

    None of the outputs are changing between runs. Check that your base seed is actually incrementing - if it's pinned to a fixed value with no batch/queue increment happening upstream, every rate produces the same static output, since there's nothing for the rates to react to.

    A "low" rate still seems to change too often, or a "high" rate seems stuck. The rate is a frequency of change tied to base-seed increments, not a probability per generation - if your base seed jumps by more than 1 between runs (skipping values), a rate like 0.5 can end up changing more often than the "every 2 increments" description implies at face value, since it's counting increments of the base seed's actual value, not runs. Step the base seed by exactly 1 per run if you want the rates to behave exactly as described.

    Practical pairing: wire the low-rate output (rate_d by default) to whatever should define composition or layout across a batch, and keep a high-rate output for whatever you want to vary on every single image.

    Categoryadaptiveprompts/utils

    Inputs (5)

    NameTypeDefaultDescription
    seedINT300000–9223372036854776000The Base seed - Every other seed is ultimately controlled by this one. E.G. A rate of 0.5 will change the seed every 2 increments.
    rate_aFLOAT1.0000.001–1β€”
    rate_bFLOAT1.0000.001–1β€”
    rate_cFLOAT0.5000.001–1β€”
    rate_dFLOAT0.1250.001–1β€”

    Outputs (4)

    NameTypeDescription
    Output AINTβ€”
    Output BINTβ€”
    Output CINTβ€”
    Output DINTβ€”