Skip to main content
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
Enhances guidance towards detailed structure by using another set of CFG negative with skipped layers. This generic version of SkipLayerGuidance can be used on every DiT model and is inspired by Perturbed Attention Guidance. The original experimental implementation was created for SD3.

Inputs

ParameterData TypeRequiredRangeDescription
modelMODELYes-The model to apply skip layer guidance to
double_layersSTRINGYes-Comma-separated layer numbers for double blocks to skip (default: “7, 8, 9”)
single_layersSTRINGYes-Comma-separated layer numbers for single blocks to skip (default: “7, 8, 9”)
scaleFLOATYes0.0 - 10.0Guidance scale factor (default: 3.0)
start_percentFLOATYes0.0 - 1.0Starting percentage for guidance application (default: 0.01)
end_percentFLOATYes0.0 - 1.0Ending percentage for guidance application (default: 0.15)
rescaling_scaleFLOATYes0.0 - 10.0Rescaling scale factor (default: 0.0)
Note: If both double_layers and single_layers are empty (contain no layer numbers), the node returns the original model without applying any guidance.

Outputs

Output NameData TypeDescription
modelMODELThe modified model with skip layer guidance applied