mcmonkeyprojects / sd-dynamic-thresholding

Dynamic Thresholding (CFG Scale Fix) for Stable Diffusion (eSwarmUI, ComfyUI, and Auto WebUI)
MIT License
1.1k stars 103 forks source link

Implement extra Rescale Classifier-Free Guidance features and UI options #55

Closed Convexity-ai closed 1 year ago

Convexity-ai commented 1 year ago

Credit to @ashen-sensored for original contribution and documentation found here

I've merged the changes from ashen's repo, cleaned up some minor missing spaces in the code, and synchronised them to up commit 27700fd. All options seem to work fine together in testing.

I've personally been using the extra functionality from ashen's repo and I think this will be a valuable feature to have in the main extension, but unfortunately development on their branch and other repos from ashen have been silent for a while.

Due to these circumstances, as a disclaimer I'm not affiliated with ashen and this PR has been made without ashen's explicit sign-off.

These changes should however satisfy this issue

mcmonkey4eva commented 1 year ago

Would've been better from the relevant author, but, eh it was under the same MIT license as here and is just a mix of my work and an external paper, so it's fine I think.

I did some cleanups to fit the codebase better.

Also, here's a giant grid (made with infinity grid generator) image

Left is separate-features off, right is separate-features on

giantnewfeaturegrid

thank you for this PR btw!