Skip to content

Commit 34a5025

Browse files
committed
Updated weight download test
1 parent a0bc9e4 commit 34a5025

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

napari_cellseg3d/_tests/test_weight_download.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,10 @@
22
WeightsDownloader,
33
WEIGHTS_DIR,
44
)
5-
from napari_cellseg3d.config import ModelInfo
6-
75

86
def test_weight_download():
9-
10-
info = ModelInfo()
11-
127
downloader = WeightsDownloader()
13-
14-
downloader.download_weights(info.name, info.get_model().get_weights_file())
15-
result_path = WEIGHTS_DIR / str(info.get_model().get_weights_file())
8+
downloader.download_weights("test", "test.pth")
9+
result_path = WEIGHTS_DIR / "test.pth"
1610

1711
assert result_path.is_file()

napari_cellseg3d/code_models/models/pretrained/pretrained_model_urls.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"TRAILMAP_MS": "https://huggingface.co/C-Achard/cellseg3d/resolve/main/TRAILMAP_MS.tar.gz",
33
"SegResNet": "https://huggingface.co/C-Achard/cellseg3d/resolve/main/SegResNet.tar.gz",
44
"VNet": "https://huggingface.co/C-Achard/cellseg3d/resolve/main/VNet.tar.gz",
5-
"SwinUNetR": "https://huggingface.co/C-Achard/cellseg3d/resolve/main/Swin64.tar.gz"
5+
"SwinUNetR": "https://huggingface.co/C-Achard/cellseg3d/resolve/main/Swin64.tar.gz",
6+
"test": "https://huggingface.co/C-Achard/cellseg3d/resolve/main/test.tar.gz"
67
}

0 commit comments

Comments
 (0)