Fix hf-hub handling when hf-hub is config source

This commit is contained in:
Ross Wightman 2022-03-21 11:12:55 -07:00
parent 5f47518f27
commit 61d3493f87

View File

@ -125,6 +125,7 @@ def _resolve_pretrained_source(pretrained_cfg):
# hf-hub specified as source via model identifier
load_from = 'hf-hub'
assert hf_hub_id
pretrained_loc = hf_hub_id
else:
# default source == timm or unspecified
if pretrained_file: