Nodes/Deforum Nodes/(deforum) Seed Node
ComfyUI Node

(deforum) Seed Node

The most boring node in the pack, and why it exists

By XmYx·Created 3 years ago·Updated 3 months ago· 198
(deforum) Seed Node
    • INT
    seed0

    (deforum) Seed Node does one thing: it takes an integer and hands it back to you as an INT. That's the entire implementation - no RNG, no state, no animation logic. So why does a seed node exist in an animation pack? Because in a Deforum loop, "the seed" and "a seed" are different things, and wiring the animation's actual seed into your other nodes keeps everything reproducible.

    What it's actually for

    An animation isn't one generation - it's hundreds, and each frame has its own seed drawn from a seed schedule. When you're debugging (or showing off), you want one number controlling the whole run. The Seed Node is that single source of truth: you set one value here, route it to the (deforum) Iterator Node's seed input, and suddenly a change in one box changes the entire animation deterministically.

    It's also handy for driving other seedable nodes - a (deforum) Add Custom Noise node, a (deforum) Shuffle Tokenizer, a KSampler - so they all share the animation's seed and stay in lockstep across frames. The classic "change one variable at a time with a fixed seed" debugging discipline (the universal community advice) becomes trivial when the seed is a single node you can lock.

    The input and output

    • seed (INT, 0 to 2^64-1, default 0) - the value. That's the whole input.

    Output:

    • INT - the same value, ready to wire anywhere an INT seed is accepted.

    It's marked as an output node (a terminal), so it'll happily sit at the end of a branch doing nothing else - which is fine. It exists to be read from.

    Installing this pack

    Part of Deforum Nodes by XmYx. ComfyUI Manager: search Deforum Nodes, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/XmYx/deforum-comfy-nodes
    

    Restart and let install.py do the heavy first-install work (it pulls the deforum-studio backend from GitHub plus a scientific-Python stack with numpy pinned below 2.0; Python 3.10 required). For a node this trivial the install is total overkill, but you take the pack as one unit.

    Common issues

    • "It doesn't do anything." Correct - it's a passthrough. It earns its place by being the thing you change, not by doing work.
    • Seed set here but animation still changes. The Iterator also has its own seed input and a seed_behavior that can be random. If seed_behavior is random in the base params, the Iterator ignores the fed seed and draws fresh ones. Check the base parameters.
    • Forgetting to wire it. A Seed Node with no wires is just a number on screen. Wire the INT output into the Iterator's seed input or it isn't doing anything for you.
    Categorydeforum/logic

    Inputs (1)

    NameTypeDefaultDescription
    seedINT00–18446744073709550000

    Outputs (1)

    NameTypeDescription
    INTINT