Spaces:
Running on Zero
Running on Zero
Update h3_dpmpp_2s_ancestral.py
Browse files- 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=
|
| 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 |
|