Update api/ltx_server_refactored.py
Browse files
api/ltx_server_refactored.py
CHANGED
|
@@ -539,6 +539,11 @@ class VideoService:
|
|
| 539 |
print(" - Enviando para a pipeline LTX...")
|
| 540 |
latents = self.pipeline(**first_pass_kwargs).images
|
| 541 |
print(f" - Latentes gerados com shape: {latents.shape}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 542 |
|
| 543 |
# Decodifica os latentes para pixels para criar o vídeo de preview
|
| 544 |
#pixel_tensor = vae_manager_singleton.decode(latents.clone(), decode_timestep=float(self.config.get("decode_timestep", 0.05)))
|
|
|
|
| 539 |
print(" - Enviando para a pipeline LTX...")
|
| 540 |
latents = self.pipeline(**first_pass_kwargs).images
|
| 541 |
print(f" - Latentes gerados com shape: {latents.shape}")
|
| 542 |
+
|
| 543 |
+
|
| 544 |
+
#_upsample_and_filter_latents
|
| 545 |
+
latents = self._upsample_and_filter_latents(latents)
|
| 546 |
+
print(f" - Latentes com upscaler: {latents.shape}")
|
| 547 |
|
| 548 |
# Decodifica os latentes para pixels para criar o vídeo de preview
|
| 549 |
#pixel_tensor = vae_manager_singleton.decode(latents.clone(), decode_timestep=float(self.config.get("decode_timestep", 0.05)))
|