Skip to content

Commit

Permalink
Fix errant import
Browse files Browse the repository at this point in the history
  • Loading branch information
rwightman committed Sep 16, 2022
1 parent 9709dba commit 9d65557
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions timm/models/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from torch.hub import _get_torch_home as get_dir

from timm import __version__

try:
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__)
Expand Down
1 change: 0 additions & 1 deletion timm/models/vision_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from collections import OrderedDict
from typing import Optional

import huggingface_hub.file_download
import torch
import torch.nn as nn
import torch.nn.functional as F
Expand Down

0 comments on commit 9d65557

Please sign in to comment.