mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-04-30 19:21:33 +00:00
fix: misc
This commit is contained in:
@@ -39,8 +39,9 @@ def hf_download(file: str, repo_id: str = REPO_ID, check_remote: bool = True) ->
|
|||||||
with suppress(Exception):
|
with suppress(Exception):
|
||||||
return hf_hub_download(repo_id, file, local_files_only=True)
|
return hf_hub_download(repo_id, file, local_files_only=True)
|
||||||
|
|
||||||
msg = f"[-] ADetailer: Failed to load model {file!r} from huggingface"
|
if check_remote:
|
||||||
print(msg)
|
msg = f"[-] ADetailer: Failed to load model {file!r} from huggingface"
|
||||||
|
print(msg)
|
||||||
return "INVALID"
|
return "INVALID"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user