Spaces:
Paused
Paused
Update api/ltx_server_refactored.py
Browse files
api/ltx_server_refactored.py
CHANGED
|
@@ -351,11 +351,11 @@ class VideoService:
|
|
| 351 |
print("-" * 20 + " FIM: _generate_single_chunk_low " + "-"*20)
|
| 352 |
return latents_bruto
|
| 353 |
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
finally:
|
| 360 |
torch.cuda.empty_cache()
|
| 361 |
torch.cuda.ipc_collect()
|
|
|
|
| 351 |
print("-" * 20 + " FIM: _generate_single_chunk_low " + "-"*20)
|
| 352 |
return latents_bruto
|
| 353 |
|
| 354 |
+
except Exception as e:
|
| 355 |
+
print("-" * 20 + " ERRO: _generate_single_chunk_low --------------------")
|
| 356 |
+
traceback.print_exc()
|
| 357 |
+
print("-" * 20 + " ----------------------------------------------")
|
| 358 |
+
return None
|
| 359 |
finally:
|
| 360 |
torch.cuda.empty_cache()
|
| 361 |
torch.cuda.ipc_collect()
|