Spaces:
Running
on
Zero
Running
on
Zero
Update inference.py
Browse files- inference.py +1 -1
inference.py
CHANGED
@@ -230,7 +230,7 @@ def run(
|
|
230 |
sigma_next = sigmas[i + 1]
|
231 |
x0_pred = (latents - sigma * noise_pred)
|
232 |
try:
|
233 |
-
x0_pred = torch.nn.functional.interpolate(x0_pred, size=scales[i + 1])
|
234 |
except IndexError:
|
235 |
x0_pred = x0_pred
|
236 |
noise = torch.randn(x0_pred.shape, generator=generator).to('cuda').half()
|
|
|
230 |
sigma_next = sigmas[i + 1]
|
231 |
x0_pred = (latents - sigma * noise_pred)
|
232 |
try:
|
233 |
+
x0_pred = torch.nn.functional.interpolate(x0_pred, size=scales[i + 1], mode='bicubic')
|
234 |
except IndexError:
|
235 |
x0_pred = x0_pred
|
236 |
noise = torch.randn(x0_pred.shape, generator=generator).to('cuda').half()
|