File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
code_models/models/pretrained Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 22 WeightsDownloader ,
33 WEIGHTS_DIR ,
44)
5- from napari_cellseg3d .config import ModelInfo
6-
75
86def 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 ()
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments