Spaces:
Paused
Paused
Update api/ltx/ltx_aduc_pipeline.py
Browse files
api/ltx/ltx_aduc_pipeline.py
CHANGED
|
@@ -237,7 +237,7 @@ class LtxAducPipeline:
|
|
| 237 |
|
| 238 |
# 5. Carrega o Latent Upsampler (também na CPU)
|
| 239 |
latent_upsampler = None
|
| 240 |
-
if self.config
|
| 241 |
spatial_path_str = hf_hub_download(repo_id=LTX_REPO_ID, filename=self.config["spatial_upscaler_model_path"], cache_dir=CACHE_DIR)
|
| 242 |
spatial_path = Path(spatial_path_str)
|
| 243 |
if not ckpt_path.is_file():
|
|
|
|
| 237 |
|
| 238 |
# 5. Carrega o Latent Upsampler (também na CPU)
|
| 239 |
latent_upsampler = None
|
| 240 |
+
if self.config["spatial_upscaler_model_path"]:
|
| 241 |
spatial_path_str = hf_hub_download(repo_id=LTX_REPO_ID, filename=self.config["spatial_upscaler_model_path"], cache_dir=CACHE_DIR)
|
| 242 |
spatial_path = Path(spatial_path_str)
|
| 243 |
if not ckpt_path.is_file():
|