aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorC43H66N12O12S2 <36072735+C43H66N12O12S2@users.noreply.github.com>2022-09-14 18:01:01 +0300
committerAUTOMATIC1111 <16777216c@gmail.com>2022-09-15 14:54:52 +0300
commit3c37c68fe07b03323ac1ebbae4781a286f05dadb (patch)
tree02efa1fa0deb9652238acdb7891cdb5b8149b9d3
parentcdaab233c46d01df45a8890da12ea9840ad6b98d (diff)
Construct CompVisDenoiser with quantization
-rw-r--r--modules/sd_samplers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sd_samplers.py b/modules/sd_samplers.py
index 7ef507f1..ffb8c2cf 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)
+ self.model_wrap = k_diffusion.external.CompVisDenoiser(sd_model, quantize=True)
self.funcname = funcname
self.func = getattr(k_diffusion.sampling, self.funcname)
self.model_wrap_cfg = CFGDenoiser(self.model_wrap)