Nodes/ComfyUI-Artha-Nodes/πŸ”± Artha Project Seed
ComfyUI Node

πŸ”± Artha Project Seed

A Seed Node That Keeps Receipts

By CyrostarΒ·Created 10 months agoΒ·Updated 8 months agoΒ· 0
πŸ”± Artha Project Seed
    • seed
    • history
    β—„seed42β–Ί

    Seed-farming is the most honest way to test a workflow: lock the seed, change one variable, compare. But the standard advice falls apart when you're looping dozens of seeds and by the time a render lands you can't remember which seed made it. ArthaProjectSeed is a small fix for exactly that - a seed passthrough that also keeps a running, timestamped log of every seed you've used this session.

    It's from the ComfyUI-Artha-Nodes pack (Cyrostar's general-purpose grab-bag), and it's about as light as a node gets: one input, two outputs, no dependencies beyond the pack itself.

    How it works

    You feed it a seed (seed, INT, default 42, range 0 to 2^64βˆ’1) and it hands it right back through the seed output - so you can drop it inline between a generator and your KSampler without losing the value. The second output, history, is where it earns its keep: every time the node executes, it stamps the current local time (HH:MM:SS) and appends a line like TIME 14:30:00 SEED 8675309 to a running log. The log lives in a class-level dictionary, which means it accumulates for the entire ComfyUI session - across workflows, across runs - until you restart the app.

    So while you're testing, the history string is a live paper trail: hook it into a text/display node (or just read it in the node's widget area) and you can see every seed you've tried and when, all in one place. It's the answer to "which seed was that good one again?" - check the history, match the timestamp, done.

    Why this beats the default

    ComfyUI's built-in seed handling is bare: you set a number, and nothing remembers what you did. The rgthree-comfy seed node is the usual upgrade because it recalls the last value. ArthaProjectSeed takes the other direction - it remembers everything you ran, not just the most recent. If your workflow involves batch-testing seeds, that's the more useful half.

    Installing it

    Same pack as the other Artha nodes:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Cyrostar/ComfyUI-Artha-Nodes
    cd ComfyUI-Artha-Nodes
    pip install -r requirements.txt
    # Windows portable: python_embeded\python.exe -m pip install -r requirements.txt
    

    or use ComfyUI Manager and search "ComfyUI-Artha-Nodes", then restart ComfyUI. It's registered through the newer extension API, so keep ComfyUI current or the node may not appear.

    Gotchas

    The history is session-only - there's no export and no clear button, so a long session produces a very long string, and restarting ComfyUI wipes it. Because the log keys on HH:MM:SS, two runs in the same second overwrite each other instead of appending; not a realistic problem unless you're queuing faster than one run a second. And keep in mind the seed output is a plain passthrough - this node doesn't generate random values, so pair it with something like ArthaMathRandom if that's what you're after.

    CategoryArtha/Project

    Inputs (1)

    NameTypeDefaultDescription
    seedINT420–18446744073709550000β€”

    Outputs (2)

    NameTypeDescription
    seedINTseed
    historySTRINGhistory