Improve logging when using local model files in generate_equirect.py

This commit is contained in:
2026-05-07 15:14:21 +02:00
parent d28f00c845
commit 14a634f483

View File

@@ -86,7 +86,10 @@ def resolve_generation_model_path(model_path: str, work_dir: str) -> str:
print(f"→ Using local SDXL 360 checkpoint: {local_model}", flush=True)
return local_model
return resolve_existing_path(model_path, work_dir)
resolved = resolve_existing_path(model_path, work_dir)
if os.path.isfile(resolved):
print(f"→ Using local model file: {resolved}", flush=True)
return resolved
def diffusers_load_kwargs() -> dict[str, bool]: