1inkusFace commited on
Commit
98b4122
·
verified ·
1 Parent(s): a9fb385

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -125,7 +125,7 @@ def generate(segment, image, prompt, size, guidance_scale, num_inference_steps,
125
  dtype=torch.float32, device=device, generator=generator, latents=None,
126
  )
127
  image_latents = pipe.image_latents(
128
- image, batch_size, size, size, device, torch.float32, num_channels_latents, num_latent_frames
129
  )
130
  image_latents = image_latents.to(pipe.transformer.dtype)
131
  guidance = torch.tensor([guidance_scale] * latents.shape[0], dtype=transformer_dtype, device=device) * 1000.0
 
125
  dtype=torch.float32, device=device, generator=generator, latents=None,
126
  )
127
  image_latents = pipe.image_latents(
128
+ image, 1, size, size, device, torch.float32, num_channels_latents, num_latent_frames
129
  )
130
  image_latents = image_latents.to(pipe.transformer.dtype)
131
  guidance = torch.tensor([guidance_scale] * latents.shape[0], dtype=transformer_dtype, device=device) * 1000.0