|
|
@ -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:
|
|
|
|