diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-15 11:55:38 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-15 11:55:38 +0000 |
commit | d7f73788285cacb0af7490ad20fedabb1aa68744 (patch) | |
tree | 1825ef22ca2b895a36cc2130e5351bb63278e0ac | |
parent | 81baaff9b36bef62f9a083243dc038e8ca769566 (diff) | |
download | stable-diffusion-webui-gfx803-d7f73788285cacb0af7490ad20fedabb1aa68744.tar.gz stable-diffusion-webui-gfx803-d7f73788285cacb0af7490ad20fedabb1aa68744.tar.bz2 stable-diffusion-webui-gfx803-d7f73788285cacb0af7490ad20fedabb1aa68744.zip |
quantization off by default
-rw-r--r-- | modules/sd_samplers.py | 2 | ||||
-rw-r--r-- | modules/shared.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/sd_samplers.py b/modules/sd_samplers.py index e1c913b3..f5e81f34 100644 --- a/modules/sd_samplers.py +++ b/modules/sd_samplers.py @@ -173,7 +173,7 @@ def extended_trange(count, *args, **kwargs): class KDiffusionSampler:
def __init__(self, funcname, sd_model):
- self.model_wrap = k_diffusion.external.CompVisDenoiser(sd_model, quantize=True if shared.opts.enable_quantization else False)
+ self.model_wrap = k_diffusion.external.CompVisDenoiser(sd_model, quantize=shared.opts.enable_quantization)
self.funcname = funcname
self.func = getattr(k_diffusion.sampling, self.funcname)
self.model_wrap_cfg = CFGDenoiser(self.model_wrap)
diff --git a/modules/shared.py b/modules/shared.py index 73518120..78450546 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -125,7 +125,7 @@ class Options: "enable_pnginfo": OptionInfo(True, "Save text information about generation parameters as chunks to png files"),
"add_model_hash_to_info": OptionInfo(False, "Add model hash to generation information"),
"img2img_color_correction": OptionInfo(False, "Apply color correction to img2img results to match original colors."),
- "enable_quantization": OptionInfo(True, "Enable quantization in K samplers for sharper and cleaner results. This may change existing seeds. Requires restart to apply."),
+ "enable_quantization": OptionInfo(False, "Enable quantization in K samplers for sharper and cleaner results. This may change existing seeds. Requires restart to apply."),
"font": OptionInfo("", "Font for image grids that have text"),
"enable_emphasis": OptionInfo(True, "Use (text) to make model pay more attention to text and [text] to make it pay less attention"),
"save_txt": OptionInfo(False, "Create a text file next to every image with generation parameters."),
|