Skip to content

Seed Everywhere

Documentation

  • Class name: Seed Everywhere
  • Category: everywhere
  • Output node: True

The Seed Everywhere node is designed to propagate a given seed value throughout the system, ensuring consistent and reproducible results across different components or executions. It emphasizes the importance of seed management in maintaining the determinism of operations.

Input types

Required

  • seed
    • The seed parameter is crucial for initializing random number generators or other stochastic processes in a deterministic manner, ensuring that the same input leads to the same output across different runs.
    • Comfy dtype: INT
    • Python dtype: int

Output types

  • int
    • Comfy dtype: INT
    • Returns the same seed value that was input, allowing it to be used or propagated further.
    • Python dtype: int

Usage tips

Source code

class SeedEverywhere(Base):
    @classmethod
    def INPUT_TYPES(s):
        return {"required":{ "seed": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}) },
                 "hidden": {"id":"UNIQUE_ID"} }

    RETURN_TYPES = ("INT",)

    def func(self, seed, id):
        message(id, seed)
        return (seed,)