Krebzonide commited on
Commit
dba8477
·
1 Parent(s): 8c445a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -25,7 +25,8 @@ def generate(prompt, samp_steps, seed, progress=gr.Progress(track_tqdm=True)):
25
  generator=torch.manual_seed(seed),
26
  output_type="latent"
27
  ).images[0]
28
- upscaled_latent = F.interpolate(latent, (128,128))
 
29
  final_image = img2img(
30
  prompt,
31
  upscaled_latent,
 
25
  generator=torch.manual_seed(seed),
26
  output_type="latent"
27
  ).images[0]
28
+ latent = latent.unsqueeze(0)
29
+ upscaled_latent = F.interpolate(latent, scale_factor=2)
30
  final_image = img2img(
31
  prompt,
32
  upscaled_latent,