dbaranchuk commited on
Commit
99b7ce8
·
verified ·
1 Parent(s): 08ba86b

Update inference.py

Browse files
Files changed (1) hide show
  1. 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()