v0xie / sd-webui-incantations

Enhance Stable Diffusion image quality, prompt following, and more through multiple implementations of novel algorithms for Automatic1111 WebUI.
GNU General Public License v3.0
136 stars 8 forks source link

Semantic-aware Classifier-Free Guidance (S-CFG) #35

Closed v0xie closed 4 months ago

v0xie commented 4 months ago

Built upon on the code from the official repository: https://github.com/SmilesDZgk/S-CFG Currently incompatible with PAG as both scripts modify the noise prediction. Needs more memory optimization - limiting size of attention maps used in calculation R is a hyperparameter set to 4 by default