Update sd_samplers_kdiffusion.py

This commit is contained in:
lllyasviel
2024-01-25 07:07:29 -08:00
parent 93a2c70364
commit dc64bd2577

View File

@@ -208,8 +208,6 @@ class KDiffusionSampler(sd_samplers_common.Sampler):
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