Spaces:
Paused
Paused
Update api/ltx_server.py
Browse files- api/ltx_server.py +9 -9
api/ltx_server.py
CHANGED
|
@@ -865,12 +865,13 @@ class VideoService:
|
|
| 865 |
#latents_parts_up = self._dividir_latentes_por_tamanho(latents_cpu_up,15,0)
|
| 866 |
|
| 867 |
|
| 868 |
-
lat_aup, lat_bup = self._dividir_latentes(latents_cpu_up)
|
| 869 |
-
print(f"[DEBUG] Partição Aup: {tuple(lat_aup.shape)}")
|
| 870 |
-
print(f"[DEBUG] Partição Bup: {tuple(lat_bup.shape)}")
|
| 871 |
|
| 872 |
-
latents_parts_up = [lat_aup, lat_bup]
|
| 873 |
-
|
|
|
|
| 874 |
|
| 875 |
|
| 876 |
for latents in latents_parts_up:
|
|
@@ -976,12 +977,11 @@ class VideoService:
|
|
| 976 |
progress_callback=progress_callback
|
| 977 |
)
|
| 978 |
|
| 979 |
-
candidate = os.path.join(results_dir, f"output_par_{par}.mp4")
|
| 980 |
try:
|
|
|
|
| 981 |
shutil.move(output_video_path, candidate)
|
| 982 |
-
|
| 983 |
-
|
| 984 |
-
partes_mp4.append(final_output_path)
|
| 985 |
|
| 986 |
except Exception as e:
|
| 987 |
final_output_path = output_video_path
|
|
|
|
| 865 |
#latents_parts_up = self._dividir_latentes_por_tamanho(latents_cpu_up,15,0)
|
| 866 |
|
| 867 |
|
| 868 |
+
#lat_aup, lat_bup = self._dividir_latentes(latents_cpu_up)
|
| 869 |
+
#print(f"[DEBUG] Partição Aup: {tuple(lat_aup.shape)}")
|
| 870 |
+
#print(f"[DEBUG] Partição Bup: {tuple(lat_bup.shape)}")
|
| 871 |
|
| 872 |
+
#latents_parts_up = [lat_aup, lat_bup]
|
| 873 |
+
|
| 874 |
+
latents_parts_up = [latents_cpu_up]
|
| 875 |
|
| 876 |
|
| 877 |
for latents in latents_parts_up:
|
|
|
|
| 977 |
progress_callback=progress_callback
|
| 978 |
)
|
| 979 |
|
|
|
|
| 980 |
try:
|
| 981 |
+
candidate = os.path.join(results_dir, f"output_par_{par}.mp4")
|
| 982 |
shutil.move(output_video_path, candidate)
|
| 983 |
+
print(f"[DEBUG] MP4 parte {par} movido para {candidate}")
|
| 984 |
+
partes_mp4.append(candidate)
|
|
|
|
| 985 |
|
| 986 |
except Exception as e:
|
| 987 |
final_output_path = output_video_path
|