Spaces:
Paused
Paused
Update api/ltx_server_refactored.py
Browse files
api/ltx_server_refactored.py
CHANGED
|
@@ -411,11 +411,18 @@ class VideoService:
|
|
| 411 |
poda_latents_num = 8
|
| 412 |
|
| 413 |
if i > 0 and poda_latents_num > 0:
|
| 414 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 415 |
|
| 416 |
latent_path = self._generate_single_chunk_low(
|
| 417 |
prompt=chunk_prompt, negative_prompt=negative_prompt, height=height, width=width,
|
| 418 |
-
num_frames=
|
| 419 |
initial_latent_condition=condition_item_latent_overlap, image_conditions=current_image_conditions,
|
| 420 |
ltx_configs_override=ltx_configs_override
|
| 421 |
)
|
|
|
|
| 411 |
poda_latents_num = 8
|
| 412 |
|
| 413 |
if i > 0 and poda_latents_num > 0:
|
| 414 |
+
frames_per_chunk += poda_latents_num
|
| 415 |
+
else:
|
| 416 |
+
frames_per_chunk = frames_per_chunk
|
| 417 |
+
|
| 418 |
+
if i == num_chunks - 1:
|
| 419 |
+
frames_per_chunk = frames_per_chunk_last+poda_latents_num
|
| 420 |
+
|
| 421 |
+
frames_per_chunk = ((frames_per_chunk//8)*8)+1
|
| 422 |
|
| 423 |
latent_path = self._generate_single_chunk_low(
|
| 424 |
prompt=chunk_prompt, negative_prompt=negative_prompt, height=height, width=width,
|
| 425 |
+
num_frames=frames_per_chunk, guidance_scale=guidance_scale, seed=used_seed + i,
|
| 426 |
initial_latent_condition=condition_item_latent_overlap, image_conditions=current_image_conditions,
|
| 427 |
ltx_configs_override=ltx_configs_override
|
| 428 |
)
|