diff --git a/modules/sd_samplers_timesteps.py b/modules/sd_samplers_timesteps.py index 7dd1ade1..4d9e6737 100644 --- a/modules/sd_samplers_timesteps.py +++ b/modules/sd_samplers_timesteps.py @@ -56,6 +56,7 @@ class CFGDenoiserTimesteps(CFGDenoiser): def get_pred_x0(self, x_in, x_out, sigma): ts = sigma.to(dtype=int) + self.alphas = self.alphas.to(ts.device) a_t = self.alphas[ts][:, None, None, None] sqrt_one_minus_at = (1 - a_t).sqrt()