mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-30 11:11:15 +00:00
Update sd_samplers_timesteps.py
This commit is contained in:
@@ -56,6 +56,7 @@ class CFGDenoiserTimesteps(CFGDenoiser):
|
|||||||
|
|
||||||
def get_pred_x0(self, x_in, x_out, sigma):
|
def get_pred_x0(self, x_in, x_out, sigma):
|
||||||
ts = sigma.to(dtype=int)
|
ts = sigma.to(dtype=int)
|
||||||
|
self.alphas = self.alphas.to(ts.device)
|
||||||
|
|
||||||
a_t = self.alphas[ts][:, None, None, None]
|
a_t = self.alphas[ts][:, None, None, None]
|
||||||
sqrt_one_minus_at = (1 - a_t).sqrt()
|
sqrt_one_minus_at = (1 - a_t).sqrt()
|
||||||
|
|||||||
Reference in New Issue
Block a user