Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -228,10 +228,10 @@ def infer(
|
|
228 |
width=width,
|
229 |
height=height,
|
230 |
# latents=None,
|
231 |
-
|
232 |
generator=generator,
|
233 |
max_sequence_length=512
|
234 |
-
).images
|
235 |
print('-- got image --')
|
236 |
sd35_image_image = pipe.vae.decode(sd_image / 0.18215).sample
|
237 |
sd35_image = sd35_image.cpu().permute(0, 2, 3, 1).float().detach().numpy()
|
|
|
228 |
width=width,
|
229 |
height=height,
|
230 |
# latents=None,
|
231 |
+
output='latent',
|
232 |
generator=generator,
|
233 |
max_sequence_length=512
|
234 |
+
).images
|
235 |
print('-- got image --')
|
236 |
sd35_image_image = pipe.vae.decode(sd_image / 0.18215).sample
|
237 |
sd35_image = sd35_image.cpu().permute(0, 2, 3, 1).float().detach().numpy()
|