dagloop5 commited on
Commit
d478bcc
·
verified ·
1 Parent(s): 4a84f87

Update h3_dpmpp_2s_ancestral.py

Browse files
Files changed (1) hide show
  1. h3_dpmpp_2s_ancestral.py +1 -1
h3_dpmpp_2s_ancestral.py CHANGED
@@ -70,7 +70,7 @@ def _dpmpp_2s_ancestral_combine(
70
  sigma_down_i_ratio = sigma_down / sigma_i
71
  x = sigma_down_i_ratio * x + (1 - sigma_down_i_ratio) * d_i
72
  if float(sigma_ip1) > 0 and eta > 0:
73
- noise = torch.randn(x.shape, dtype=x.dtype, device=x.device, generator=generator)
74
  x = (alpha_ip1 / alpha_down) * x + noise * s_noise * renoise_coeff
75
  return x
76
 
 
70
  sigma_down_i_ratio = sigma_down / sigma_i
71
  x = sigma_down_i_ratio * x + (1 - sigma_down_i_ratio) * d_i
72
  if float(sigma_ip1) > 0 and eta > 0:
73
+ noise = torch.randn(x.shape, dtype=x.dtype, device="cpu", generator=generator).to(x.device)
74
  x = (alpha_ip1 / alpha_down) * x + noise * s_noise * renoise_coeff
75
  return x
76