PreSampling (NoiseIn)(samplerSettingsNoiseIn)
PreSampling (NoiseIn) (class samplerSettingsNoiseIn) is a pipeline pre-sampling node in the EasyUse/PreSampling category.
sampler Settings Noise In
PreSampling (NoiseIn) (class samplerSettingsNoiseIn) is a pipeline pre-sampling node in the EasyUse/PreSampling category. It prepares sampling settings for a downstream sampler and adds a controllable noise-injection stage to the latent. It takes one PIPE_LINE, applies the configured sampler settings, optionally injects noise into a latent, and returns the updated pipeline. It does not execute sampling itself; feed its output into a KSampler or another node that consumes a PIPE_LINE.
Description
This node is used before a sampler to override the sampling behavior carried in the pipeline. In addition to the usual steps, cfg, sampler_name, scheduler, denoise, and seed settings, it provides a noise-injection path controlled by factor. This lets you add a controlled amount of noise to the latent before the sampler runs, with optional separate controls for the noise seed and the target latent.
The node does not produce a sampled image. It outputs an updated PIPE_LINE containing the sampling settings and any supplied noise/latent information.
Inputs
Required
| Input | Type | Default | Description |
|---|---|---|---|
pipe | PIPE_LINE | — | The pipeline carrying the model, conditioning, latent, and existing sampler settings. |
factor | FLOAT | 0.1 | Strength of the noise injected into the latent before sampling. Range 0.0 to 1.0. 0.0 adds no noise; 1.0 applies full-strength noise. |
steps | INT | 20 | Number of sampling steps to use. Range 1 to 10000. |
cfg | FLOAT | 8 | Classifier-free guidance scale. Range 0 to 100. |
sampler_name | COMBO | — | Sampler algorithm to use. Select from the available ComfyUI sampler names. |
scheduler | COMBO | — | Noise schedule / scheduler to use for the sampler. |
denoise | FLOAT | 1 | Amount of denoising to perform. Range 0.0 to 1.0. Lower values preserve more of the original latent content. |
seed | INT | — | Seed for the sampling operation. |
Optional
| Input | Type | Default | Description |
|---|---|---|---|
optional_noise_seed | INT | — | A separate seed used for the noise-injection stage. Connect this when you want to control the injected noise independently from the main sampling seed. |
optional_latent | LATENT | — | An optional latent to use as the target for noise injection. If omitted, the latent already stored in the pipeline is used. |
Outputs
| Output | Type | Description |
|---|---|---|
pipe | PIPE_LINE | The updated pipeline with the configured sampling settings and optional noise-injection inputs applied. Pass this into a sampler node that accepts a PIPE_LINE. |
Usage Notes
- Place this node before the actual sampler node in a
PIPE_LINEworkflow. - Use
factorto control how much noise is mixed into the initial latent. Small values produce subtle variation; higher values push the latent closer to pure noise. denoiseandfactorwork together:denoisecontrols how much of the latent is regenerated whilefactorcontrols how much noise is introduced before sampling starts.- Connect
optional_noise_seedwhen you need to reproduce or vary the injected noise without changing the main sampler seed. - Connect
optional_latentwhen you want to inject noise into a specific latent rather than the one stored in the pipe, such as an encoded image or a custom latent prepared upstream. - The returned pipe preserves the other contents of the original pipeline; only sampling settings and noise-related values are updated.
Comments
Sign in with GitHub to join the discussion.