File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
tiatoolbox/models/architecture Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ filelock>=3.9.0
99flask >= 2.2.2
1010flask-cors >= 4.0.0
1111glymur >= 0.12.7 , < 0.14 # 0.14 is not compatible with python3.9
12+ huggingface_hub # do we need to pin it to 0.33.3?
1213imagecodecs >= 2022.9.26
1314joblib >= 1.1.1
1415jupyterlab >= 3.5.2
@@ -37,4 +38,3 @@ tqdm>=4.64.1
3738umap-learn >= 0.5.3
3839wsidicom >= 0.18.0
3940zarr >= 2.13.3 , < 3.0.0
40- huggingface_hub # do we need to pin it to 0.33.3?
Original file line number Diff line number Diff line change 77from typing import TYPE_CHECKING
88
99import torch
10+ from huggingface_hub import hf_hub_download
1011
1112from tiatoolbox import rcParam
1213from tiatoolbox .models .dataset .classification import predefined_preproc_func
1314
14- from huggingface_hub import hf_hub_download
15-
1615if TYPE_CHECKING : # pragma: no cover
1716 from tiatoolbox .models .models_abc import IOConfigABC
1817
@@ -60,7 +59,7 @@ def fetch_pretrained_weights(
6059
6160 return hf_hub_download (
6261 repo_id = "TIACentre/TIAToolbox_pretrained_weights" ,
63- filename = file_name ,
62+ filename = file_name ,
6463 cache_dir = cache_dir ,
6564 force_download = overwrite ,
6665 )
Original file line number Diff line number Diff line change @@ -87,7 +87,6 @@ def _get_architecture(
8787 return model .features
8888 if "alexnet" in arch_name :
8989 return model .features
90-
9190
9291 return model .features
9392
You can’t perform that action at this time.
0 commit comments