From 603b8a59c8f1ca651f3a65e818a6aaddb72e014b Mon Sep 17 00:00:00 2001 From: doctorpangloss <@hiddenswitch.com> Date: Tue, 30 Jul 2024 23:11:04 -0700 Subject: [PATCH] Improve interaction with controlnet_aux --- comfy/model_downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy/model_downloader.py b/comfy/model_downloader.py index 002d9d715..50d89219e 100644 --- a/comfy/model_downloader.py +++ b/comfy/model_downloader.py @@ -82,7 +82,7 @@ def get_or_download(folder_name: str, filename: str, known_files: Optional[List[ file_size = os.stat(path, follow_symlinks=True).st_size if os.path.isfile(path) else None except: file_size = None - if os.path.isfile(path) and file_size == known_file.size: + if os.path.isfile(path) and known_file.size is None or file_size == known_file.size: return path path = hf_hub_download(repo_id=known_file.repo_id,