Skip to content

Commit 9d65557

Browse files
committed
Fix errant import
1 parent 9709dba commit 9d65557

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

timm/models/hub.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from torch.hub import _get_torch_home as get_dir
1414

1515
from timm import __version__
16+
1617
try:
1718
from huggingface_hub import HfApi, HfFolder, Repository, hf_hub_download, hf_hub_url
1819
hf_hub_download = partial(hf_hub_download, library_name="timm", library_version=__version__)

timm/models/vision_transformer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
from collections import OrderedDict
2626
from typing import Optional
2727

28-
import huggingface_hub.file_download
2928
import torch
3029
import torch.nn as nn
3130
import torch.nn.functional as F

0 commit comments

Comments
 (0)