Commit
·
b735958
1
Parent(s):
3fa232c
small fix
Browse files
app.py
CHANGED
@@ -280,7 +280,11 @@ def video_generation_handler(prompt, seed=42, fps=15, width=DEFAULT_WIDTH, heigh
|
|
280 |
rnd = torch.Generator(gpu).manual_seed(int(seed))
|
281 |
pipeline._initialize_kv_cache(1, torch.float16, device=gpu)
|
282 |
pipeline._initialize_crossattn_cache(1, torch.float16, device=gpu)
|
283 |
-
|
|
|
|
|
|
|
|
|
284 |
|
285 |
vae_cache, latents_cache = None, None
|
286 |
if not APP_STATE["current_use_taehv"] and not args.trt:
|
|
|
280 |
rnd = torch.Generator(gpu).manual_seed(int(seed))
|
281 |
pipeline._initialize_kv_cache(1, torch.float16, device=gpu)
|
282 |
pipeline._initialize_crossattn_cache(1, torch.float16, device=gpu)
|
283 |
+
|
284 |
+
# Calculate latent dimensions based on actual width/height (assuming 8x downsampling)
|
285 |
+
latent_height = height // 8
|
286 |
+
latent_width = width // 8
|
287 |
+
noise = torch.randn([1, 21, 16, latent_height, latent_width], device=gpu, dtype=torch.float16, generator=rnd)
|
288 |
|
289 |
vae_cache, latents_cache = None, None
|
290 |
if not APP_STATE["current_use_taehv"] and not args.trt:
|