๐ ๐ ฃ๐ ง 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)
| Name | Type | Required |
|---|---|---|
| model | MODEL | required |
| positive | CONDITIONING | required |
| negative | CONDITIONING | required |
| skip_steps_sigma_threshold | FLOAT | required |
| cfg_star_rescale | BOOLEAN | required |
| sigmas | STRING | required |
| cfg_values | STRING | required |
| stg_scale_values | STRING | required |
| stg_rescale_values | STRING | required |
| stg_layers_indices | STRING | required |
| preset | STG_ADVANCED_PRESET | optional |
| apply_apg | BOOLEAN | optional |
| apg_cfg_scale | FLOAT | optional |
| eta | FLOAT | optional |
| norm_threshold | FLOAT | optional |
Outputs (1)
| Name | Type |
|---|---|
| GUIDER | GUIDER |