Update api/ltx_server.py
Browse files- api/ltx_server.py +7 -0
api/ltx_server.py
CHANGED
|
@@ -769,6 +769,8 @@ class VideoService:
|
|
| 769 |
|
| 770 |
downscaled_width = max(divisor, downscaled_width)
|
| 771 |
downscaled_height = max(divisor, downscaled_height)
|
|
|
|
|
|
|
| 772 |
|
| 773 |
print(f"[DEBUG] Dimensões do First Pass: Calculado ({unrounded_width:.0f}x{unrounded_height:.0f}) -> Sanitizado ({downscaled_width}x{downscaled_height})")
|
| 774 |
|
|
@@ -796,11 +798,16 @@ class VideoService:
|
|
| 796 |
print(f"[DEBUG] Upscale de Latentes concluído em {time.perf_counter() - t_upscale:.2f}s")
|
| 797 |
del base_latents; gc.collect(); torch.cuda.empty_cache()
|
| 798 |
|
|
|
|
|
|
|
|
|
|
| 799 |
# --- ETAPA 3: REFINAMENTO DE TEXTURA (SECOND PASS) ---
|
| 800 |
print("\n--- INICIANDO ETAPA 3: REFINAMENTO DE TEXTURA (SECOND PASS) ---")
|
| 801 |
t_pass2 = time.perf_counter()
|
| 802 |
|
| 803 |
second_pass_config = self.config.get("second_pass", {}).copy()
|
|
|
|
|
|
|
| 804 |
|
| 805 |
second_pass_kwargs = call_kwargs.copy()
|
| 806 |
second_pass_kwargs.update({
|
|
|
|
| 769 |
|
| 770 |
downscaled_width = max(divisor, downscaled_width)
|
| 771 |
downscaled_height = max(divisor, downscaled_height)
|
| 772 |
+
first_pass_kwargs.update(first_pass_config)
|
| 773 |
+
|
| 774 |
|
| 775 |
print(f"[DEBUG] Dimensões do First Pass: Calculado ({unrounded_width:.0f}x{unrounded_height:.0f}) -> Sanitizado ({downscaled_width}x{downscaled_height})")
|
| 776 |
|
|
|
|
| 798 |
print(f"[DEBUG] Upscale de Latentes concluído em {time.perf_counter() - t_upscale:.2f}s")
|
| 799 |
del base_latents; gc.collect(); torch.cuda.empty_cache()
|
| 800 |
|
| 801 |
+
|
| 802 |
+
|
| 803 |
+
|
| 804 |
# --- ETAPA 3: REFINAMENTO DE TEXTURA (SECOND PASS) ---
|
| 805 |
print("\n--- INICIANDO ETAPA 3: REFINAMENTO DE TEXTURA (SECOND PASS) ---")
|
| 806 |
t_pass2 = time.perf_counter()
|
| 807 |
|
| 808 |
second_pass_config = self.config.get("second_pass", {}).copy()
|
| 809 |
+
second_pass_kwargs.update(second_pass_config)
|
| 810 |
+
|
| 811 |
|
| 812 |
second_pass_kwargs = call_kwargs.copy()
|
| 813 |
second_pass_kwargs.update({
|