From d9250a3d9abd7bf2e8047bf37c54623bc93911fd Mon Sep 17 00:00:00 2001 From: Dowon Date: Sat, 22 Feb 2025 10:01:42 +0900 Subject: [PATCH] fix: misc --- adetailer/common.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/adetailer/common.py b/adetailer/common.py index 4d1fdcc..9fb5e45 100644 --- a/adetailer/common.py +++ b/adetailer/common.py @@ -39,8 +39,9 @@ def hf_download(file: str, repo_id: str = REPO_ID, check_remote: bool = True) -> with suppress(Exception): return hf_hub_download(repo_id, file, local_files_only=True) - msg = f"[-] ADetailer: Failed to load model {file!r} from huggingface" - print(msg) + if check_remote: + msg = f"[-] ADetailer: Failed to load model {file!r} from huggingface" + print(msg) return "INVALID"