Skip to content
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

Fix img2img-alternative-test script for SD v2.x #8772

Merged
merged 2 commits into from
Mar 25, 2023

Conversation

mcmonkey4eva
Copy link
Contributor

@mcmonkey4eva mcmonkey4eva commented Mar 20, 2023

It produced completely broken nonsense output on SD v2 previously.
Now it generates... relatively similar to SD v1. V1 in my tests makes slightly garbled outputs, and V2 seems to amplify contrast. Different output issues, but either way, it's gone from "not working" to "just kinda weird". V1 outputs shouldn't be changed at all by this PR.
Fix is straight forward - just use the v denoiser when v is needed, and skip the redundant var from get_scalings (it's literally named c_skip in external source, so...)

Tested and validated that it works the same on SD v1.x, and now works (ish) on SD v2.

I'm not here to clean up that whole script file, it's a mess, but I removed some of the stray spaces and unused imports as just a bit of tidiness while I'm touching the file anyway.

Followup work to clean up the code and/or just overall improve the quality/capability on either SD version might be worthwhile.

@AUTOMATIC1111 AUTOMATIC1111 merged commit 983d48a into AUTOMATIC1111:master Mar 25, 2023
brkirch pushed a commit to brkirch/stable-diffusion-webui that referenced this pull request Apr 5, 2023
…d2-fix

Fix img2img-alternative-test script for SD v2.x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants