Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wholeBody_ct_segmentation failed to be download #537

Closed
KumoLiu opened this issue Dec 4, 2023 · 1 comment
Closed

wholeBody_ct_segmentation failed to be download #537

KumoLiu opened this issue Dec 4, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@KumoLiu
Copy link
Collaborator

KumoLiu commented Dec 4, 2023

Hi, I'm trying to download a pre-trained model from monai bundle, but keep getting bundle not found error, tried all different models and made sure the name was correct. Do you know what;s causing the rror? Thanks!

from monai.bundle import ConfigParser, download
model_dir = r"/content/drive/My Drive/model/monai_bundles"
model_name = "wholeBody_ct_segmentation"
download(name=model_name, bundle_dir=model_dir)

I got this error.

2023-12-02 17:04:22,299 - INFO - --- input summary of monai.bundle.scripts.download ---
2023-12-02 17:04:22,302 - INFO - > name: 'wholeBody_ct_segmentation'
2023-12-02 17:04:22,305 - INFO - > bundle_dir: '/content/drive/My Drive/model/'
2023-12-02 17:04:22,307 - INFO - > source: 'monaihosting'
2023-12-02 17:04:22,310 - INFO - > remove_prefix: 'monai_'
2023-12-02 17:04:22,312 - INFO - > progress: True
2023-12-02 17:04:22,313 - INFO - ---


---------------------------------------------------------------------------
HTTPError                                 Traceback (most recent call last)
[<ipython-input-51-ea3c96c4a248>](https://localhost:8080/#) in <cell line: 2>()
      1 model_name = "wholeBody_ct_segmentation"
----> 2 download(name=model_name, bundle_dir=model_dir)

3 frames
[/usr/local/lib/python3.10/dist-packages/requests/models.py](https://localhost:8080/#) in raise_for_status(self)
   1019 
   1020         if http_error_msg:
-> 1021             raise HTTPError(http_error_msg, response=self)
   1022 
   1023     def close(self):

HTTPError: 404 Client Error: Not Found for url: https://api.ngc.nvidia.com/v2/models/nvidia/monaihosting/wholeBody_ct_segmentation

Originally posted by @qwang0225 in #536

@KumoLiu
Copy link
Collaborator Author

KumoLiu commented Dec 4, 2023

Thanks for the reporting, fixed it in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants