Carlos s
commited on
Update api/ltx_server.py
Browse files- api/ltx_server.py +4 -0
api/ltx_server.py
CHANGED
|
@@ -622,6 +622,10 @@ class VideoService:
|
|
| 622 |
latents = result_first
|
| 623 |
print(f"[DEBUG] Latentes (single-pass): shape={tuple(latents.shape)}")
|
| 624 |
latents_first = latents
|
|
|
|
|
|
|
|
|
|
|
|
|
| 625 |
|
| 626 |
# --- SECOND PASS ---
|
| 627 |
print("[DEBUG] Executando SECOND PASS (latent_upsampler)...")
|
|
|
|
| 622 |
latents = result_first
|
| 623 |
print(f"[DEBUG] Latentes (single-pass): shape={tuple(latents.shape)}")
|
| 624 |
latents_first = latents
|
| 625 |
+
|
| 626 |
+
|
| 627 |
+
ctx = torch.autocast(device_type="cuda", dtype=self.runtime_autocast_dtype) if self.device == "cuda" else contextlib.nullcontext()
|
| 628 |
+
|
| 629 |
|
| 630 |
# --- SECOND PASS ---
|
| 631 |
print("[DEBUG] Executando SECOND PASS (latent_upsampler)...")
|