fix lora: outputs path local

This commit is contained in:
Shine1i 2026-02-15 16:58:24 +01:00
commit 8529f89a75

View file

@ -41,6 +41,13 @@ def is_local_path(path: str) -> bool:
if not path:
return False
# If it exists on disk, treat as local (covers relative paths like "outputs/foo").
try:
if Path(normalize_path(path)).expanduser().exists():
return True
except Exception:
pass
# Obvious HF patterns
if path.count('/') == 1 and not path.startswith(('/', '.', '~')):
return False # Looks like org/model format