Update api/ltx_server.py
Browse files- api/ltx_server.py +1 -11
api/ltx_server.py
CHANGED
|
@@ -359,18 +359,8 @@ class VideoService:
|
|
| 359 |
|
| 360 |
def _load_config(self):
|
| 361 |
base = LTX_VIDEO_REPO_DIR / "configs"
|
| 362 |
-
candidates = [
|
| 363 |
-
base / "ltxv-13b-0.9.8-dev-fp8.yaml",
|
| 364 |
-
base / "ltxv-13b-0.9.8-distilled-fp8.yaml",
|
| 365 |
-
base / "ltxv-13b-0.9.8-distilled.yaml",
|
| 366 |
-
]
|
| 367 |
-
for cfg in candidates:
|
| 368 |
-
if cfg.exists():
|
| 369 |
-
print(f"[DEBUG] Config selecionada: {cfg}")
|
| 370 |
-
with open(cfg, "r") as file:
|
| 371 |
-
return yaml.safe_load(file)
|
| 372 |
cfg = base / "ltxv-13b-0.9.8-distilled-fp8.yaml"
|
| 373 |
-
print(f"[DEBUG] Config
|
| 374 |
with open(cfg, "r") as file:
|
| 375 |
return yaml.safe_load(file)
|
| 376 |
|
|
|
|
| 359 |
|
| 360 |
def _load_config(self):
|
| 361 |
base = LTX_VIDEO_REPO_DIR / "configs"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 362 |
cfg = base / "ltxv-13b-0.9.8-distilled-fp8.yaml"
|
| 363 |
+
print(f"[DEBUG] Config: {cfg}")
|
| 364 |
with open(cfg, "r") as file:
|
| 365 |
return yaml.safe_load(file)
|
| 366 |
|