Skip to content

Commit

Permalink
'i'
Browse files Browse the repository at this point in the history
  • Loading branch information
Fannovel16 committed Mar 8, 2024
1 parent 36aee14 commit 9365529
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/controlnet_aux/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ def custom_torch_download(filename, cache_dir=annotator_ckpts_path):
return model_path

def custom_hf_download(pretrained_model_or_path, filename, cache_dir=temp_dir, subfolder='', use_symlinks=USE_SYMLINKS, repo_type="model"):
if use_symlinks:
cache_dir = annotator_ckpts_path
local_dir = os.path.join(cache_dir, pretrained_model_or_path)
model_path = os.path.join(local_dir, *subfolder.split('/'), filename)

Expand Down

0 comments on commit 9365529

Please sign in to comment.