ford442 commited on
Commit
cc515c7
·
verified ·
1 Parent(s): eaef682

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -228,10 +228,10 @@ def infer(
228
  width=width,
229
  height=height,
230
  # latents=None,
231
- # output='latent',
232
  generator=generator,
233
  max_sequence_length=512
234
- ).images[0]
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()