Spaces:
Running
on
T4
Running
on
T4
Krebzonide
commited on
Commit
·
dba8477
1
Parent(s):
8c445a0
Update app.py
Browse files
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 |
-
|
|
|
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,
|