|
|
@ -13,6 +13,7 @@ except ImportError:
|
|
|
|
from torch.hub import _get_torch_home as get_dir
|
|
|
|
from torch.hub import _get_torch_home as get_dir
|
|
|
|
|
|
|
|
|
|
|
|
from timm import __version__
|
|
|
|
from timm import __version__
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
from huggingface_hub import HfApi, HfFolder, Repository, hf_hub_download, hf_hub_url
|
|
|
|
from huggingface_hub import HfApi, HfFolder, Repository, hf_hub_download, hf_hub_url
|
|
|
|
hf_hub_download = partial(hf_hub_download, library_name="timm", library_version=__version__)
|
|
|
|
hf_hub_download = partial(hf_hub_download, library_name="timm", library_version=__version__)
|
|
|
|