Construct CompVisDenoiser with quantization
This commit is contained in:
parent
cdaab233c4
commit
3c37c68fe0
|
@ -173,7 +173,7 @@ def extended_trange(count, *args, **kwargs):
|
||||||
|
|
||||||
class KDiffusionSampler:
|
class KDiffusionSampler:
|
||||||
def __init__(self, funcname, sd_model):
|
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.funcname = funcname
|
||||||
self.func = getattr(k_diffusion.sampling, self.funcname)
|
self.func = getattr(k_diffusion.sampling, self.funcname)
|
||||||
self.model_wrap_cfg = CFGDenoiser(self.model_wrap)
|
self.model_wrap_cfg = CFGDenoiser(self.model_wrap)
|
||||||
|
|
Loading…
Reference in New Issue