Update api/ltx_server.py
Browse files- api/ltx_server.py +3 -3
api/ltx_server.py
CHANGED
|
@@ -317,7 +317,7 @@ class VideoService:
|
|
| 317 |
|
| 318 |
for item in conditioning_items:
|
| 319 |
if not isinstance(item, LatentConditioningItem):
|
| 320 |
-
|
| 321 |
continue
|
| 322 |
|
| 323 |
media_item_latents = item.latent_tensor.to(dtype=init_latents.dtype, device=init_latents.device)
|
|
@@ -353,10 +353,10 @@ class VideoService:
|
|
| 353 |
|
| 354 |
def _apply_ltx_pipeline_patches(self):
|
| 355 |
"""Aplica patches em tempo de execução na pipeline LTX para compatibilidade com ADUC-SDR."""
|
| 356 |
-
|
| 357 |
for worker in self.workers:
|
| 358 |
worker.pipeline.prepare_conditioning = _aduc_prepare_conditioning_patch.__get__(worker.pipeline, LTXVideoPipeline)
|
| 359 |
-
|
| 360 |
|
| 361 |
|
| 362 |
|
|
|
|
| 317 |
|
| 318 |
for item in conditioning_items:
|
| 319 |
if not isinstance(item, LatentConditioningItem):
|
| 320 |
+
print("Patch ADUC: Item de condicionamento não é um LatentConditioningItem e será ignorado.")
|
| 321 |
continue
|
| 322 |
|
| 323 |
media_item_latents = item.latent_tensor.to(dtype=init_latents.dtype, device=init_latents.device)
|
|
|
|
| 353 |
|
| 354 |
def _apply_ltx_pipeline_patches(self):
|
| 355 |
"""Aplica patches em tempo de execução na pipeline LTX para compatibilidade com ADUC-SDR."""
|
| 356 |
+
print("LTX POOL MANAGER: Aplicando patches ADUC-SDR na pipeline LTX...")
|
| 357 |
for worker in self.workers:
|
| 358 |
worker.pipeline.prepare_conditioning = _aduc_prepare_conditioning_patch.__get__(worker.pipeline, LTXVideoPipeline)
|
| 359 |
+
print("LTX POOL MANAGER: Todas as instâncias da pipeline foram corrigidas com sucesso.")
|
| 360 |
|
| 361 |
|
| 362 |
|