๐Ÿ…›๐Ÿ…ฃ๐Ÿ…ง STG Guider Advanced

STGGuiderAdvanced

The Advanced STG Guider implements sophisticated techniques for controlling the denoising process: It creates a dynamic mapping from scheduler-defined sigma values to CFG and STG (Spatio-Temporal Skip Guidance [1]) parameters. This approach establishes distinct sigma value ranges that operate independently of step numbers, allowing precise control over: โ€ข CFG scale โ€ข STG scale and rescale factors โ€ข STG attention layer skipping patterns The guider also supports: โ€ข CFG-Zero* [2] rescaling, which dynamically adjusts negative predictions based on the dot product between positive and negative signals โ€ข Threshold-based noise prediction zeroing for steps with sigma values exceeding a specified threshold For example if the sigma ranges are defined as [1.0, 0.9, 0.85, 0.6] and the CFG values are defined as [4, 3, 2, 1] and STG scale values are defined as [2, 2, 2, 1] and STG rescale values are defined as [1, 1, 1, 1] and STG layers indices are defined as [[14, 17], [14, 16], [14], [14]], then the guider will: - use CFG=4, STG scale=2, STG rescale=1 and STG layers indices = [14, 17] for sigma in the range (0.9, 1.0] - use CFG=3, STG scale=2, STG rescale=1 and STG layers indices = [14, 16] for sigma in the range (0.85, 0.9] - use CFG=2, STG scale=2, STG rescale=1 and STG layers indices = [14] for sigma in the range (0.8, 0.85] - use CFG=1, STG scale=1, STG rescale=1 and STG layers indices = [14] for sigma in the range (0.6, 0.8] The guider will use the same parameters for the same sigma values, regardless of the step number. References: [1] https://arxiv.org/abs/2411.18664 [2] https://arxiv.org/abs/2503.18886

Pack: ComfyUI-LTXVideo

custom_nodes.ComfyUI-LTXVideo

Inputs (15)

NameTypeRequired
modelMODELrequired
positiveCONDITIONINGrequired
negativeCONDITIONINGrequired
skip_steps_sigma_thresholdFLOATrequired
cfg_star_rescaleBOOLEANrequired
sigmasSTRINGrequired
cfg_valuesSTRINGrequired
stg_scale_valuesSTRINGrequired
stg_rescale_valuesSTRINGrequired
stg_layers_indicesSTRINGrequired
presetSTG_ADVANCED_PRESEToptional
apply_apgBOOLEANoptional
apg_cfg_scaleFLOAToptional
etaFLOAToptional
norm_thresholdFLOAToptional

Outputs (1)

NameType
GUIDERGUIDER