Spaces:
Paused
Paused
Update api/ltx/ltx_aduc_manager.py
Browse files- api/ltx/ltx_aduc_manager.py +1 -12
api/ltx/ltx_aduc_manager.py
CHANGED
|
@@ -175,7 +175,6 @@ class LTXPoolManager:
|
|
| 175 |
|
| 176 |
logging.info("⚙️ Inicializando LTXPoolManager Singleton...")
|
| 177 |
self.config = self._load_config()
|
| 178 |
-
self._resolve_model_paths_from_cache()
|
| 179 |
|
| 180 |
main_device_str = str(gpu_manager.get_ltx_device())
|
| 181 |
vae_device_str = str(gpu_manager.get_ltx_vae_device())
|
|
@@ -191,17 +190,7 @@ class LTXPoolManager:
|
|
| 191 |
with open(config_path, "r") as file:
|
| 192 |
return yaml.safe_load(file)
|
| 193 |
|
| 194 |
-
|
| 195 |
-
"""Garante que a configuração em memória tenha os caminhos absolutos para os modelos no cache."""
|
| 196 |
-
try:
|
| 197 |
-
main_ckpt_path = hf_hub_download(repo_id="Lightricks/LTX-Video", filename=self.config["checkpoint_path"])
|
| 198 |
-
self.config["checkpoint_path"] = main_ckpt_path
|
| 199 |
-
if self.config.get("spatial_upscaler_model_path"):
|
| 200 |
-
upscaler_path = hf_hub_download(repo_id="Lightricks/LTX-Video", filename=self.config["spatial_upscaler_model_path"])
|
| 201 |
-
self.config["spatial_upscaler_model_path"] = upscaler_path
|
| 202 |
-
except Exception as e:
|
| 203 |
-
logging.critical(f"Falha ao resolver caminhos de modelo LTX. O setup.py foi executado? Erro: {e}", exc_info=True)
|
| 204 |
-
raise
|
| 205 |
|
| 206 |
def get_pipeline(self) -> LTXVideoPipeline:
|
| 207 |
"""Retorna a instância do pipeline, já carregada e corrigida."""
|
|
|
|
| 175 |
|
| 176 |
logging.info("⚙️ Inicializando LTXPoolManager Singleton...")
|
| 177 |
self.config = self._load_config()
|
|
|
|
| 178 |
|
| 179 |
main_device_str = str(gpu_manager.get_ltx_device())
|
| 180 |
vae_device_str = str(gpu_manager.get_ltx_vae_device())
|
|
|
|
| 190 |
with open(config_path, "r") as file:
|
| 191 |
return yaml.safe_load(file)
|
| 192 |
|
| 193 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 194 |
|
| 195 |
def get_pipeline(self) -> LTXVideoPipeline:
|
| 196 |
"""Retorna a instância do pipeline, já carregada e corrigida."""
|