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).
SonarLatentOperationSetSeed
- operation
- LATENT_OPERATION
◄seed0►
◄restore_rng_statefalse►
Categorylatent/advanced/operations
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| operation | LATENT_OPERATION | — | |
| seed | INT | 00–18446744073709550000 | Seed to set. Note that this is called _every time_ before the operation. |
| restore_rng_state | BOOLEAN | false | When 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)
| Name | Type | Description |
|---|---|---|
| LATENT_OPERATION | LATENT_OPERATION | — |