Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
-
|
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")
|