-
Notifications
You must be signed in to change notification settings - Fork 27.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try dynamic thresholding #3962
Try dynamic thresholding #3962
Conversation
Thresholding not implemented for VanillaStableDiffusionSamplers DDIM/PLMS.
Added UI to the main txt2img, img2img (not settings). The thresholding is not implemented for DDIM/PLMS samplers. Weird horizontal lines appear during generation which makes me think something's not right. |
Any update on this? |
The generated images don't have artifacts, but during generation there are horizontal stripes of the same color which seem to be affecting the output. It's especially apparent when the actual CFG and mimic CFG are far apart. I'm not sure if this is inherent to the method or a bug introduced when I added it to this repository, but I don't have time to debug it. |
Why closed? Was really looking forward to this feature. |
I don't have time for it, and it's better not to leave hope. Maybe someone else will pick it up. |
Prompt combination with AND, etc. still does not work
Also, include generation params in image depending on threshold_enable. Latent normalization still happens even if threshold percentile = 1.
I made some time and fixed the horizontal line issue, moved "threshold percentile" into settings, made it compatible with prompt combination (AND, OR), and fixed the "paste previous prompt" button not working. There should be no issues now. Clicking the "paste previous prompt" button twice erases the negative prompt and hides the rows, but that seems like a seaprate issue. For those curious about what the horizontal line thing was, the shape of "cond" was incorrect, so it wasn't being flattened properly. |
Wow, looks exciting!
Update: Nevermind! I found it, it's called "Latent fix" :-) Update2: Works pretty cool on my end btw, no more "image overheating" on high CFG scales. |
|
Looking at the code, most of the work is done in |
Yeah, I can work on making it an extension. |
I'm also looking forward to this extension, because it would help a lot to generate better images |
@dtan3847 any progress? |
No progress, life and covid got in the way |
As the original author of this PR is unable to continue work, I went ahead myself to build an extension based on it: https://github.com/mcmonkeyprojects/sd-dynamic-thresholding |
@mcmonkey4eva this turned out great! What would be nice is to have the parameters embedded in the image and TXT for reproduction - if it can be done. I hope @AUTOMATIC1111 will add it to the extension list. |
Update your webui, you're very far behind. For further issues post @ https://github.com/mcmonkeyprojects/sd-dynamic-thresholding/issues |
Adding dynamic thresholding by Birch-san: https://github.com/Birch-san/stable-diffusion/tree/dynamic-thresholding-6
Feature request here: #3268
Not ready to merge since settings are hardcoded right now. It'd be faster if someone else familiar with the UI could help with that, but I can probably do it.