Skip to content

Construct CompVisDenoiser with quantization for better output #460

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

Merged
merged 4 commits into from
Sep 15, 2022

Conversation

C43H66N12O12S2
Copy link
Collaborator

This PR enables quantization in CompVisDenoiser for K samplers for better/cleaner/sharper output. See Birch-san/stable-diffusion@f52429a and crowsonkb/k-diffusion#23

Comparisons (zoomed %400)

Before:
before

After:
after

@AUTOMATIC1111
Copy link
Owner

This doesn't feel overall like an upgrade plus it changes pictures for existing seeds.

Enabled
grid-0002-quantize

Disabled
grid-0003-no-quantize

@C43H66N12O12S2
Copy link
Collaborator Author

I disagree - I think it's better than the default - if you look at your linked images, for example, row 3 column 2, quantization has produced a much more coherent hand. It's also universally sharper and removes quite a bit of the noise compared to default.

I could make it a cmdline option?

@cryzed
Copy link
Collaborator

cryzed commented Sep 14, 2022

Maybe make it an option similar to the color correction option in the settings menu.

@AUTOMATIC1111
Copy link
Owner

yeah, add it to settings

@C43H66N12O12S2
Copy link
Collaborator Author

@AUTOMATIC1111 I've added a setting for this.

@AUTOMATIC1111 AUTOMATIC1111 merged commit 81baaff into AUTOMATIC1111:master Sep 15, 2022
Sashimimochi pushed a commit to Sashimimochi/stable-diffusion-webui that referenced this pull request Sep 22, 2024
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.

3 participants