mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-01-26 19:09:45 +00:00
Update sd_samplers_timesteps.py
This commit is contained in:
@@ -154,6 +154,11 @@ class CompVisSampler(sd_samplers_common.Sampler):
|
||||
[unet_patcher],
|
||||
unet_patcher.memory_required([x.shape[0] * 2] + list(x.shape[1:])) + inference_memory)
|
||||
|
||||
self.model_wrap.inner_model.betas = self.model_wrap.inner_model.betas.to(unet_patcher.current_device)
|
||||
self.model_wrap.inner_model.alphas_cumprod = self.model_wrap.inner_model.alphas_cumprod.to(unet_patcher.current_device)
|
||||
self.model_wrap.inner_model.alphas_cumprod_prev = self.model_wrap.inner_model.alphas_cumprod_prev.to(unet_patcher.current_device)
|
||||
self.model_wrap.inner_model.logvar = self.model_wrap.inner_model.logvar.to(unet_patcher.current_device)
|
||||
|
||||
steps = steps or p.steps
|
||||
timesteps = self.get_timesteps(p, steps)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user