EuuIia commited on
Commit
31ca3d5
·
verified ·
1 Parent(s): 0d2c09d

Update api/ltx_server.py

Browse files
Files changed (1) hide show
  1. api/ltx_server.py +5 -2
api/ltx_server.py CHANGED
@@ -820,9 +820,12 @@ class VideoService:
820
  # --- <FIM DA LÓGICA DE CÁLCULO EXATA> ---
821
  t_pass2 = time.perf_counter()
822
 
 
 
 
823
  vae_temporal_scale = self.pipeline.video_scale_factor # Geralmente 4 ou 8
824
- num_pixel_frames_part = ((latents.shape[2] - 1) * vae_temporal_scale) + 1
825
- print(f"[DEBUG] Parte: {latents.shape[2] - 1} latentes -> {num_pixel_frames_part} frames de pixel (alvo)")
826
 
827
  second_pass_kwargs = call_kwargs.copy()
828
  second_pass_kwargs.update({
 
820
  # --- <FIM DA LÓGICA DE CÁLCULO EXATA> ---
821
  t_pass2 = time.perf_counter()
822
 
823
+ num_latent_frames_part = latents.shape[2]
824
+
825
+
826
  vae_temporal_scale = self.pipeline.video_scale_factor # Geralmente 4 ou 8
827
+ num_pixel_frames_part = ((num_latent_frames_part - 1) * vae_temporal_scale) + 1
828
+ print(f"[DEBUG] Parte: {num_latent_frames_part - 1} latentes -> {num_pixel_frames_part} frames de pixel (alvo)")
829
 
830
  second_pass_kwargs = call_kwargs.copy()
831
  second_pass_kwargs.update({