mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Fix hf-hub handling when hf-hub is config source
This commit is contained in:
parent
5f47518f27
commit
61d3493f87
@ -125,6 +125,7 @@ def _resolve_pretrained_source(pretrained_cfg):
|
|||||||
# hf-hub specified as source via model identifier
|
# hf-hub specified as source via model identifier
|
||||||
load_from = 'hf-hub'
|
load_from = 'hf-hub'
|
||||||
assert hf_hub_id
|
assert hf_hub_id
|
||||||
|
pretrained_loc = hf_hub_id
|
||||||
else:
|
else:
|
||||||
# default source == timm or unspecified
|
# default source == timm or unspecified
|
||||||
if pretrained_file:
|
if pretrained_file:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user