Nodes/ComfyUI-sonar/SonarLatentOperationSetSeed
ComfyUI Node

SonarLatentOperationSetSeed

Latent operation that allows setting a seed. Can be useful for running latent operations that generate noise outside of a normal sampling context (i.e. operations on the initial latent before sampling).

By blepping·Created 3 years ago·Updated 4 days ago· 49
SonarLatentOperationSetSeed
  • operation
  • LATENT_OPERATION
seed0
restore_rng_statefalse
Categorylatent/advanced/operations

Inputs (3)

NameTypeDefaultDescription
operationLATENT_OPERATION
seedINT00–18446744073709550000Seed to set. Note that this is called _every time_ before the operation.
restore_rng_stateBOOLEANfalseWhen enabled, the current RNG state is saved just before calling the operation and restored afterwards. In other words, only the latent operation will see the seed you set. Note: This only handles the PyTorch and Python random module states.

Outputs (1)

NameTypeDescription
LATENT_OPERATIONLATENT_OPERATION