Carlos s
commited on
Update api/ltx_server.py
Browse files- api/ltx_server.py +13 -6
api/ltx_server.py
CHANGED
|
@@ -599,21 +599,28 @@ class VideoService:
|
|
| 599 |
# }
|
| 600 |
#)
|
| 601 |
|
|
|
|
| 602 |
first_pass_kwargs = call_kwargs.copy()
|
| 603 |
first_pass_kwargs.update(first_pass_args)
|
| 604 |
|
|
|
|
| 605 |
with ctx:
|
| 606 |
-
|
| 607 |
-
|
| 608 |
-
latents_first = result_first.latents
|
| 609 |
-
|
|
|
|
|
|
|
|
|
|
| 610 |
with ctx:
|
| 611 |
-
|
| 612 |
latents=latents_first,
|
| 613 |
**second_pass_args
|
| 614 |
)
|
|
|
|
| 615 |
latents_final = result_second.latents if hasattr(result_second, "latents") else result_second
|
| 616 |
-
|
|
|
|
| 617 |
|
| 618 |
print("[DEBUG] Chamando multi_scale_pipeline...")
|
| 619 |
t_ms = time.perf_counter()
|
|
|
|
| 599 |
# }
|
| 600 |
#)
|
| 601 |
|
| 602 |
+
#
|
| 603 |
first_pass_kwargs = call_kwargs.copy()
|
| 604 |
first_pass_kwargs.update(first_pass_args)
|
| 605 |
|
| 606 |
+
print("[DEBUG] Executando FIRST PASS (pipeline base)...")
|
| 607 |
with ctx:
|
| 608 |
+
result_first = self.pipeline(**first_pass_kwargs)
|
| 609 |
+
|
| 610 |
+
latents_first = result_first.latents if hasattr(result_first, "latents") else result_first
|
| 611 |
+
print(f"[DEBUG] Latentes FIRST PASS: {tuple(latents_first.shape)}")
|
| 612 |
+
|
| 613 |
+
# --- SECOND PASS ---
|
| 614 |
+
print("[DEBUG] Executando SECOND PASS (latent_upsampler)...")
|
| 615 |
with ctx:
|
| 616 |
+
result_second = self.latent_upsampler(
|
| 617 |
latents=latents_first,
|
| 618 |
**second_pass_args
|
| 619 |
)
|
| 620 |
+
|
| 621 |
latents_final = result_second.latents if hasattr(result_second, "latents") else result_second
|
| 622 |
+
print(f"[DEBUG] Latentes SECOND PASS: {tuple(latents_final.shape)}")
|
| 623 |
+
|
| 624 |
|
| 625 |
print("[DEBUG] Chamando multi_scale_pipeline...")
|
| 626 |
t_ms = time.perf_counter()
|