Improve logging when using local model files in generate_equirect.py
This commit is contained in:
@@ -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)
|
print(f"→ Using local SDXL 360 checkpoint: {local_model}", flush=True)
|
||||||
return local_model
|
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]:
|
def diffusers_load_kwargs() -> dict[str, bool]:
|
||||||
|
|||||||
Reference in New Issue
Block a user