EuuIia commited on
Commit
78e0964
·
verified ·
1 Parent(s): e8b7d34

Update api/ltx_server.py

Browse files
Files changed (1) hide show
  1. api/ltx_server.py +1 -3
api/ltx_server.py CHANGED
@@ -803,7 +803,6 @@ class VideoService:
803
  pass
804
 
805
  latents_parts_up = self._dividir_latentes_por_tamanho(latents_cpu_up,4,1)
806
- temp_dir = tempfile.mkdtemp(prefix="ltxv_"); self._register_tmp_dir(temp_dir)
807
  results_dir = "/app/output"; os.makedirs(results_dir, exist_ok=True)
808
 
809
  for latents in latents_parts_up:
@@ -864,7 +863,6 @@ class VideoService:
864
  latents_parts = []
865
  for latents in latents_list:
866
  latents_parts.append(self._dividir_latentes_por_tamanho(latents,4,1))
867
- temp_dir = tempfile.mkdtemp(prefix="ltxv_"); self._register_tmp_dir(temp_dir)
868
  results_dir = "/app/output"; os.makedirs(results_dir, exist_ok=True)
869
 
870
 
@@ -874,7 +872,7 @@ class VideoService:
874
  print(f"[DEBUG] Partição {par}: {tuple(latents.shape)}")
875
 
876
  par = par + 1
877
- output_video_path = os.path.join(temp_dir, f"output_{used_seed}_{par}.mp4")
878
  final_output_path = None
879
 
880
  print("[DEBUG] Decodificando bloco de latentes com VAE → tensor de pixels...")
 
803
  pass
804
 
805
  latents_parts_up = self._dividir_latentes_por_tamanho(latents_cpu_up,4,1)
 
806
  results_dir = "/app/output"; os.makedirs(results_dir, exist_ok=True)
807
 
808
  for latents in latents_parts_up:
 
863
  latents_parts = []
864
  for latents in latents_list:
865
  latents_parts.append(self._dividir_latentes_por_tamanho(latents,4,1))
 
866
  results_dir = "/app/output"; os.makedirs(results_dir, exist_ok=True)
867
 
868
 
 
872
  print(f"[DEBUG] Partição {par}: {tuple(latents.shape)}")
873
 
874
  par = par + 1
875
+ output_video_path = os.path.join(results_dir, f"output_{used_seed}_{par}.mp4")
876
  final_output_path = None
877
 
878
  print("[DEBUG] Decodificando bloco de latentes com VAE → tensor de pixels...")