Update upscaler_specialist.py
Browse files- upscaler_specialist.py +2 -4
upscaler_specialist.py
CHANGED
|
@@ -22,9 +22,7 @@ class UpscalerSpecialist:
|
|
| 22 |
|
| 23 |
|
| 24 |
def _lazy_init(self):
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
try:
|
| 28 |
# Tenta usar o VAE do ltx_manager
|
| 29 |
if ltx_manager_singleton.workers:
|
| 30 |
candidate_vae = ltx_manager_singleton.workers[0].pipeline.vae
|
|
@@ -58,7 +56,7 @@ class UpscalerSpecialist:
|
|
| 58 |
|
| 59 |
logger.info("[Upscaler] Pipeline carregado com sucesso.")
|
| 60 |
|
| 61 |
-
|
| 62 |
logger.error(f"[Upscaler] Falha ao carregar pipeline: {e}")
|
| 63 |
self.pipe_upsample = None
|
| 64 |
|
|
|
|
| 22 |
|
| 23 |
|
| 24 |
def _lazy_init(self):
|
| 25 |
+
try:
|
|
|
|
|
|
|
| 26 |
# Tenta usar o VAE do ltx_manager
|
| 27 |
if ltx_manager_singleton.workers:
|
| 28 |
candidate_vae = ltx_manager_singleton.workers[0].pipeline.vae
|
|
|
|
| 56 |
|
| 57 |
logger.info("[Upscaler] Pipeline carregado com sucesso.")
|
| 58 |
|
| 59 |
+
except Exception as e:
|
| 60 |
logger.error(f"[Upscaler] Falha ao carregar pipeline: {e}")
|
| 61 |
self.pipe_upsample = None
|
| 62 |
|