Spaces:
Paused
Paused
Update app.py
Browse files
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,
|
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
|