1inkusFace commited on
Commit
0675e76
·
verified ·
1 Parent(s): 06ea014

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -130,8 +130,7 @@ def generate(segment, image, prompt, size, guidance_scale, num_inference_steps,
130
  dtype=torch.float32, device=device, generator=generator, latents=None,
131
  )
132
  image_latents = pipe.image_latents(
133
- #image, 1, size, size, device, torch.float32, num_channels_latents, num_latent_frames
134
- image, 1, size, size, device, torch.bfloat16, num_channels_latents, num_latent_frames
135
  )
136
  image_latents = image_latents.to("cuda", pipe.transformer.dtype)
137
  pipe.vae.to("cpu")
 
130
  dtype=torch.float32, device=device, generator=generator, latents=None,
131
  )
132
  image_latents = pipe.image_latents(
133
+ image, 1, size, size, device, torch.float32, num_channels_latents, num_latent_frames
 
134
  )
135
  image_latents = image_latents.to("cuda", pipe.transformer.dtype)
136
  pipe.vae.to("cpu")