Eueuiaa commited on
Commit
4d52541
·
verified ·
1 Parent(s): cb1dc5e

Update api/ltx_server.py

Browse files
Files changed (1) hide show
  1. api/ltx_server.py +7 -6
api/ltx_server.py CHANGED
@@ -858,13 +858,13 @@ class VideoService:
858
  #latents_parts_up = self._dividir_latentes_por_tamanho(latents_cpu_up,15,0)
859
 
860
 
861
- #lat_aup, lat_bup = self._dividir_latentes(latents_cpu_up)
862
- #print(f"[DEBUG] Partição Aup: {tuple(lat_aup.shape)}")
863
- #print(f"[DEBUG] Partição Bup: {tuple(lat_bup.shape)}")
864
 
865
- #latents_parts_up = [lat_aup, lat_bup]
866
 
867
- latents_parts_up = [latents_cpu_up]
868
 
869
 
870
  for latents in latents_parts_up:
@@ -966,7 +966,8 @@ class VideoService:
966
  video_encode_tool_singleton.save_video_from_tensor(
967
  pixel_tensor,
968
  output_video_path,
969
- fps=call_kwargs["frame_rate"]
 
970
  )
971
 
972
  try:
 
858
  #latents_parts_up = self._dividir_latentes_por_tamanho(latents_cpu_up,15,0)
859
 
860
 
861
+ lat_aup, lat_bup = self._dividir_latentes(latents_cpu_up)
862
+ print(f"[DEBUG] Partição Aup: {tuple(lat_aup.shape)}")
863
+ print(f"[DEBUG] Partição Bup: {tuple(lat_bup.shape)}")
864
 
865
+ latents_parts_up = [lat_aup, lat_bup]
866
 
867
+ #latents_parts_up = [latents_cpu_up]
868
 
869
 
870
  for latents in latents_parts_up:
 
966
  video_encode_tool_singleton.save_video_from_tensor(
967
  pixel_tensor,
968
  output_video_path,
969
+ fps=call_kwargs["frame_rate"],
970
+ progress_callback=progress_callback,
971
  )
972
 
973
  try: