[New Extension] Dynamic Thresholding (High CFG Scale Fix) #7448
Replies: 14 comments 17 replies
-
cc @ClashSAN |
Beta Was this translation helpful? Give feedback.
-
why not to place this one in Discussions since extension is released? :) |
Beta Was this translation helpful? Give feedback.
-
Thank you! .👍👍 |
Beta Was this translation helpful? Give feedback.
-
I was waiting for this some months since i've read that issue... Thanks man, works quite good <3 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I thought what I needed was new models, but THIS is actually what i've been needing! There are so many prompts where the "vibe", and camera angle is perfect, but the Detailing is just too flat, or sorta washed out looking. Having the best luck with 99.5-99.9 Constant, and doing CFG values ~5-7 higher. |
Beta Was this translation helpful? Give feedback.
-
Fantastic. I thought I can learn something from the code - but that's an entirely new level. |
Beta Was this translation helpful? Give feedback.
-
Yes! The inability to more heavily force attention to the entire prompt due to high CFG issues has been one of the things holding back Stable Diffusion since the beginning. |
Beta Was this translation helpful? Give feedback.
-
I do think the default values for this extension should be adjusted to something more useful. A "Top percentile" of 100 seems to generally result in gray washed-out pictures, something like 99.8 or 99.9 would probably be a better starting point. There's no explanation in the advanced settings of what the difference between "Minimum value of the CFG Scale Scheduler" and "Minimum value of the Mimic Scale Scheduler" are or how they should be used. Just guessing, I assume than when not set to "Constant", the base and mimicked CFG values used will actually vary for different aspects of the picture generation, and those two values are supposed to define a floor they will not vary below. Which gets a little confusing if you set those values higher than the initial CFG and Mimicked CFG and it still seems to work, but I don't have a lot of info to go off of. Having seen somewhat disappointing results with the Schedulers set to "Constant", I switched to "Linear Down" for both in testing. Some settings I've gotten pretty good results with are: Base CFG: 12 But that's prelimary, there are a lot of potential variables. For instance, the above still worked pretty well when I accidentally set the "Mimic CFG Scale" to 12 also. On a side note, I did confirm that the "Minimum value" sliders have no effect when the Scale Schedulers are set to "Constant" My hopes for how the future of this extension goes:
|
Beta Was this translation helpful? Give feedback.
-
@mcmonkey4eva, hello :) thanks for your work have you tried lora weights in prompt with dynamic threshold? |
Beta Was this translation helpful? Give feedback.
-
@mcmonkey4eva is it a known issue that the extension is working in txt2img, but not with img2img? When I try using it with img2img there is no change to the output image, no matter what settings are selected. Using it with txt2img, no problems at all. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to add in the ability to send the Dynamic Thresholding parameters using "Send to txt2img" in the extension itself, or does that require changes to the main package? |
Beta Was this translation helpful? Give feedback.
-
Oh also, is the new "Power Scheduler Value" slider needed for anything, or should it usually just be left at 4? |
Beta Was this translation helpful? Give feedback.
-
hello :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Repo: https://github.com/mcmonkeyprojects/sd-dynamic-thresholding
Always-Visible extension with a checkbox that when checked enables a way to use higher CFG Scales without color issues.
Example of basic usage:
Example of pushing the settings hard to try to empower a 5 step render, top row is disabled, second row is with the extension on and maxed out on settings (50cfg/50mimic/cosine down/cosine down/100%), third/fourth are experiments to push it even harder
This extension solves the request in issue #3268
Beta Was this translation helpful? Give feedback.
All reactions