Skip to content

add skip layer guidance to sd 3.5 #9819

@vladmandic

Description

@vladmandic

stabilityai recently added support to skip_layer_guidance in their official implementation via this pr:
https://github.com/Stability-AI/sd3.5/pull/11/files

slg adds extra guidance to the original cfg during specific steps.
its calculated as positive output from original model minus positive model output from a model with specific layers removed (e.g. layer 7, 8 and 9 for sd35-medium).

slg is an optional feature, but seems like sai prefers that its enabled for sd35 medium variant.

cc: @yiyixuxu @sayakpaul @DN6 @asomoza

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions