Update sd_samplers_kdiffusion.py

This commit is contained in:
lllyasviel
2024-01-25 07:06:34 -08:00
parent 6d429e9498
commit 93a2c70364

View File

@@ -207,6 +207,11 @@ class KDiffusionSampler(sd_samplers_common.Sampler):
[unet_patcher],
unet_patcher.memory_required([x.shape[0] * 2] + list(x.shape[1:])) + inference_memory)
self.model_wrap.log_sigmas = self.model_wrap.log_sigmas.to(unet_patcher.current_device)
self.model_wrap.sigma_min = self.model_wrap.sigma_min.to(unet_patcher.current_device)
self.model_wrap.sigma_max = self.model_wrap.sigma_max.to(unet_patcher.current_device)
self.model_wrap.sigmas = self.model_wrap.sigmas.to(unet_patcher.current_device)
steps = steps or p.steps
sigmas = self.get_sigmas(p, steps)