We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d199f66 commit a383ef9Copy full SHA for a383ef9
timm/models/helpers.py
@@ -134,7 +134,7 @@ def _resolve_pretrained_source(pretrained_cfg):
134
elif pretrained_url:
135
load_from = 'url'
136
pretrained_loc = pretrained_url
137
- elif hf_hub_id and has_hf_hub(necessary=False):
+ elif hf_hub_id and has_hf_hub(necessary=True):
138
# hf-hub available as alternate weight source in default_cfg
139
load_from = 'hf-hub'
140
pretrained_loc = hf_hub_id
0 commit comments