EasyUse/PreSamplinggenerated
PreSampling (DynamicCFG)(dynamicCFGSettings)
PreSampling (DynamicCFG) node from ComfyUI-Easy-Use.
dynamic CFG Settings
pipe
image_to_latent
latent
pipe
steps
20
cfg
8
cfg_mode
COMBO
cfg_scale_min
3.5
sampler_name
COMBO
scheduler
COMBO
denoise
1.00
seed
INT
Easy Use
The PreSampling (DynamicCFG) node prepares a PIPE_LINE for sampling using a dynamic CFG schedule instead of a single fixed CFG value. The effective CFG is scaled from cfg toward cfg_scale_min according to the selected cfg_mode. It is grouped under EasyUse/PreSampling and is intended to be used before a downstream sampler that consumes the returned pipeline.
Inputs
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
pipe | PIPE_LINE | Yes | — | The incoming pipeline containing model, conditioning, VAE, latent, and related sampler data. |
steps | INT | Yes | 20 | Number of sampling steps. Range: 1–10000. |
cfg | FLOAT | Yes | 8 | The upper CFG value used by the dynamic CFG schedule. Range: 0–100. |
cfg_mode | COMBO | Yes | — | Selects the dynamic CFG schedule shape. The available modes are provided by the node's combo box. |
cfg_scale_min | FLOAT | Yes | 3.5 | The lower CFG value reached by the dynamic schedule. Range: 0–100, step 0.5. |
sampler_name | COMBO | Yes | — | The sampler to use for the updated pipeline. |
scheduler | COMBO | Yes | — | The scheduler to use for the updated pipeline. |
denoise | FLOAT | Yes | 1 | How much of the latent to denoise. Range: 0–1, step 0.01. Use 1 for full denoise, or a lower value for image-to-image and similar workflows. |
seed | INT | Yes | — | Random seed for sampling. Use the same seed with the same settings for reproducible results. |
image_to_latent | IMAGE | No | — | Optional image used to provide the latent for the returned pipeline when no latent is supplied. |
latent | LATENT | No | — | Optional pre-encoded latent to use for sampling. When provided, it is carried through the returned pipeline. |
Outputs
| Output | Type | Description |
|---|---|---|
pipe | PIPE_LINE | The updated pipeline with the chosen steps, CFG schedule, sampler, scheduler, denoise, seed, and optional latent/image-to-latent applied. |
Usage Notes
- The dynamic CFG range is bounded by
cfgon the upper end andcfg_scale_minon the lower end. Settingcfg_scale_minequal tocfgmakes the CFG effectively static. cfg_modedetermines how the CFG value changes across the sampling steps. The exact choices depend on the mode list available in the node's combo box.- This node does not sample by itself; it configures and returns a pipeline for another sampling node to consume.
- For text-to-image from a pure noise latent, keep
denoiseat 1. Lowerdenoiseis useful for image-to-image, inpainting, or workflows that preserve part of the original latent. - If neither
image_to_latentnorlatentis provided, the latent already contained in the incomingpipeis used.
Comments
Sign in with GitHub to join the discussion.