ComfyUI > Nodes > ComfyUI > SkipLayerGuidanceDiT

ComfyUI Node: SkipLayerGuidanceDiT

Class Name

SkipLayerGuidanceDiT

Category
advanced/guidance
Author
ComfyAnonymous (Account age: 872days)
Extension
ComfyUI
Latest Updated
2025-05-13
Github Stars
76.71K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

SkipLayerGuidanceDiT Description

Enhances diffusion model guidance by skipping layers for improved attention control and detailed image generation.

SkipLayerGuidanceDiT:

The SkipLayerGuidanceDiT node is designed to enhance the guidance of diffusion models by strategically skipping certain layers during the generation process. This approach is inspired by the concept of Perturbed Attention Guidance, which aims to improve the model's ability to focus on detailed structures within the generated images. By skipping specific layers, the node allows for a more refined control over the model's attention, potentially leading to more detailed and accurate outputs. This method is particularly useful for artists and creators who wish to achieve a higher level of detail and precision in their AI-generated artworks. The node is experimental and offers a generic implementation that can be applied to various DiT models, making it a versatile tool in the realm of advanced guidance techniques.

SkipLayerGuidanceDiT Input Parameters:

model

The model parameter specifies the diffusion model to be used with the SkipLayerGuidanceDiT node. This parameter is crucial as it determines the base model that will undergo the layer-skipping process. The model should be compatible with the DiT framework to ensure proper functionality.

double_layers

The double_layers parameter is a string that lists the layers to be skipped during the guidance process. These layers are specified as comma-separated integers, indicating their positions within the model. The default value is "7, 8, 9", and this parameter allows you to control which layers are bypassed to enhance the model's focus on specific details.

single_layers

The single_layers parameter functions similarly to double_layers, specifying another set of layers to be skipped. This provides additional flexibility in controlling the model's attention and can be used in conjunction with double_layers to fine-tune the guidance process. The default value is also "7, 8, 9".

scale

The scale parameter is a float that adjusts the intensity of the guidance process. It ranges from 0.0 to 10.0, with a default value of 3.0. This parameter influences how strongly the skipped layers affect the model's output, allowing you to balance between subtle and pronounced guidance effects.

start_percent

The start_percent parameter is a float that defines the starting point of the layer-skipping process as a percentage of the total generation process. It ranges from 0.0 to 1.0, with a default value of 0.01. This parameter helps in determining when the skipping should begin, providing control over the timing of the guidance.

end_percent

The end_percent parameter is a float that sets the endpoint of the layer-skipping process, also as a percentage of the total generation process. It ranges from 0.0 to 1.0, with a default value of 0.15. This parameter, in conjunction with start_percent, defines the duration of the layer-skipping effect.

rescaling_scale

The rescaling_scale parameter is a float that adjusts the rescaling of the guidance effect. It ranges from 0.0 to 10.0, with a default value of 0.0. This parameter allows for additional fine-tuning of the guidance intensity, providing another layer of control over the model's output.

SkipLayerGuidanceDiT Output Parameters:

MODEL

The output of the SkipLayerGuidanceDiT node is a modified MODEL that has undergone the layer-skipping process. This output model is expected to have enhanced guidance capabilities, allowing for more detailed and precise generation of images. The modifications made by the node aim to improve the model's attention to specific structures, resulting in outputs that better align with the desired artistic vision.

SkipLayerGuidanceDiT Usage Tips:

  • Experiment with different combinations of double_layers and single_layers to find the optimal layer-skipping strategy for your specific model and artistic goals.
  • Adjust the scale parameter to control the intensity of the guidance effect. A higher scale may result in more pronounced details, while a lower scale can produce subtler effects.
  • Use the start_percent and end_percent parameters to fine-tune the timing of the layer-skipping process, ensuring that the guidance effect is applied at the most impactful stages of the generation process.

SkipLayerGuidanceDiT Common Errors and Solutions:

Invalid layer format

  • Explanation: The layers specified in double_layers or single_layers are not in the correct comma-separated integer format.
  • Solution: Ensure that the layers are specified as a string of comma-separated integers, such as "7, 8, 9".

Model compatibility issue

  • Explanation: The selected model is not compatible with the DiT framework required by the SkipLayerGuidanceDiT node.
  • Solution: Verify that the model is compatible with the DiT framework and meets the necessary requirements for layer-skipping.

Scale out of range

  • Explanation: The scale parameter is set outside the allowed range of 0.0 to 10.0.
  • Solution: Adjust the scale parameter to fall within the specified range to ensure proper functionality.

SkipLayerGuidanceDiT Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.