ComfyUI Node
Sampler Peek (Advanced)
Extended SamplerCustomAdvanced that decodes intermediate latents using a VAE at specified steps, with optional step-dependent CFG. Useful for visualizing the sampling process or creating step-by-step animations.
Sampler Peek (Advanced)
- noise
- guider
- sampler
- sigmas
- latent_image
- vae
- output
- denoised_output
- preview_images
- step_indices
◄decode_expr►
◄start_step1►
◄end_step0►
◄max_previews0►
◄cfg_expr►
Categorysampling/peek
Inputs (11)
| Name | Type | Default | Description |
|---|---|---|---|
| noise | NOISE | Noise source for sampling | |
| guider | GUIDER | Guider (e.g., CFGGuider) | |
| sampler | SAMPLER | Sampler to use | |
| sigmas | SIGMAS | Sigmas schedule | |
| latent_image | LATENT | Latent image to sample from | |
| vae | VAE | VAE model for decoding intermediate latents | |
| decode_expr | STRING | Expression that determines when to decode. Variables: step (1..n), n (total steps). e.g., 'step % 5 == 0'. Empty = every step. | |
| start_step | INT | 11–10000 | Only decode at or after this step (1-based) |
| end_step | INT | 00–10000 | Only decode at or before this step. 0 = no limit |
| max_previews | INT | 00–10000 | Max previews to store in RAM. 0 = unlimited |
| cfg_expropt | STRING | Step-dependent CFG expression. Evaluated at each step to dynamically set the guider CFG. Variables: step, n. e.g., 'clamp(1 + step / n * 7, 1, 8)' for a linear ramp. Empty = use the guider's default CFG. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| output | LATENT | Final sampled latent (with optional step-dependent CFG applied) |
| denoised_output | LATENT | Final x0 prediction |
| preview_images | IMAGE | Batch of decoded preview images from intermediate steps |
| step_indices | INT | Step indices (1-based) for each preview image |