ComfyUI > Nodes > ComfyUI > SkipLayerGuidanceSD3

ComfyUI Node: SkipLayerGuidanceSD3

Class Name

SkipLayerGuidanceSD3

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

SkipLayerGuidanceSD3 Description

Enhances AI-generated imagery guidance with skipped layers for detailed structures, inspired by Perturbed Attention Guidance.

SkipLayerGuidanceSD3:

SkipLayerGuidanceSD3 is a specialized node designed to enhance the guidance towards detailed structures in AI-generated imagery by utilizing a technique known as skipped layers. This method is inspired by the Perturbed Attention Guidance approach, which aims to refine the attention mechanism within AI models to produce more intricate and precise outputs. The node achieves this by implementing a secondary set of Classifier-Free Guidance (CFG) negatives, which are strategically applied to certain layers of the model. This experimental implementation, developed by Dango233 at StabilityAI, is particularly beneficial for artists and creators looking to achieve higher levels of detail and structure in their AI-generated artworks. By manipulating the guidance process, SkipLayerGuidanceSD3 allows for more control over the artistic output, making it a valuable tool for those seeking to push the boundaries of AI art.

SkipLayerGuidanceSD3 Input Parameters:

model

The model parameter specifies the AI model that will be used for generating the artwork. This is a required input and serves as the foundation upon which the guidance enhancements will be applied. The model must be compatible with the SkipLayerGuidanceSD3 node to ensure proper functionality.

layers

The layers parameter is a string that defines which layers of the model will have the skipped layer guidance applied. By default, it is set to "7, 8, 9", indicating that these specific layers will be targeted. This parameter allows you to customize which parts of the model's architecture will be influenced by the guidance, potentially affecting the level of detail and structure in the output.

scale

The scale parameter is a float that determines the intensity of the guidance applied to the model. It has a default value of 3.0 and can range from 0.0 to 10.0, with increments of 0.1. A higher scale value increases the strength of the guidance, potentially leading to more pronounced effects in the generated artwork.

start_percent

The start_percent parameter is a float that indicates the starting point of the guidance application as a percentage of the total process. It defaults to 0.01 and can range from 0.0 to 1.0, with increments of 0.001. This parameter allows you to control when the guidance begins to take effect during the generation process.

end_percent

The end_percent parameter is a float that specifies the endpoint of the guidance application as a percentage of the total process. It defaults to 0.15 and can range from 0.0 to 1.0, with increments of 0.001. This parameter, in conjunction with start_percent, defines the duration over which the guidance is applied, allowing for fine-tuning of the effect's timing.

SkipLayerGuidanceSD3 Output Parameters:

MODEL

The output of the SkipLayerGuidanceSD3 node is a modified MODEL that incorporates the enhanced guidance effects. This output model is adjusted based on the specified input parameters and is ready to be used for generating AI art with improved detail and structure. The modifications aim to refine the model's attention mechanisms, resulting in more intricate and precise artistic outputs.

SkipLayerGuidanceSD3 Usage Tips:

  • Experiment with different layers settings to see how targeting various parts of the model affects the output. This can help you achieve the desired level of detail and structure in your artwork.
  • Adjust the scale parameter to control the intensity of the guidance. Start with the default value and gradually increase or decrease it to observe how it influences the final result.
  • Use the start_percent and end_percent parameters to fine-tune the timing of the guidance application. This can be particularly useful for achieving specific effects at different stages of the generation process.

SkipLayerGuidanceSD3 Common Errors and Solutions:

Invalid layer format

  • Explanation: The layers parameter must be a comma-separated string of integers representing the layers to be skipped.
  • Solution: Ensure that the layers input is formatted correctly, such as "7, 8, 9", without any extra spaces or non-numeric characters.

Scale out of range

  • Explanation: The scale parameter must be within the specified range of 0.0 to 10.0.
  • Solution: Adjust the scale value to fall within the acceptable range, ensuring it is a float with increments of 0.1.

Start or end percent out of range

  • Explanation: The start_percent and end_percent parameters must be within the range of 0.0 to 1.0.
  • Solution: Verify that both start_percent and end_percent are set to valid float values within the specified range, using increments of 0.001.

SkipLayerGuidanceSD3 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.