TractSeg icon indicating copy to clipboard operation
TractSeg copied to clipboard

Downloading pretrained weights (~140MB) ...Error

Open wang-bingh opened this issue 2 years ago • 8 comments

When I use ‘TractSeg -i hc1_DTI.nii.gz --raw_diffusion_input’ in Teminal to treat example DTI data, the following error continues to appear:

Loading weights from: /home/w/.tractseg/pretrained_weights_tract_segmentation_v3.npz Downloading pretrained weights (~140MB) ... Traceback (most recent call last): File "/home/w/anaconda3/envs/torch/bin/TractSeg", line 7, in exec(compile(f.read(), file, 'exec')) File "/home/w/soft/TractSeg/bin/TractSeg", line 420, in main() File "/home/w/soft/TractSeg/bin/TractSeg", line 325, in main seg = run_tractseg(data, args.output_type, File "/home/w/soft/TractSeg/tractseg/python_api.py", line 154, in run_tractseg utils.download_pretrained_weights(experiment_type=Config.EXPERIMENT_TYPE, File "/home/w/soft/TractSeg/tractseg/libs/utils.py", line 170, in download_pretrained_weights download_url(WEIGHTS_URL, weights_path) File "/home/w/soft/TractSeg/tractseg/libs/utils.py", line 110, in download_url raise e File "/home/w/soft/TractSeg/tractseg/libs/utils.py", line 106, in download_url r.raise_for_status() File "/home/w/anaconda3/envs/torch/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://zenodo.org/record/3518348/files/best_weights_ep220.npz?download=1

However,the ‘url: https://zenodo.org/record/3518348/files/best_weights_ep220.npz?download=1’ can open and download at Firefox Web Browser.

How to solve this problem?

Thank you.

wang-bingh avatar Oct 17 '23 05:10 wang-bingh