From ff422ebfb04ee153f17270975f802c4b90bcb789 Mon Sep 17 00:00:00 2001 From: YunLiu <55491388+KumoLiu@users.noreply.github.com> Date: Thu, 18 Jul 2024 15:09:37 +0800 Subject: [PATCH] fix #7928 Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> --- monai/bundle/scripts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monai/bundle/scripts.py b/monai/bundle/scripts.py index 975b6cbdbd..56146546e8 100644 --- a/monai/bundle/scripts.py +++ b/monai/bundle/scripts.py @@ -438,7 +438,7 @@ def download( if repo_ is None: org_ = os.getenv("NGC_ORG", None) team_ = os.getenv("NGC_TEAM", None) - if org_ is not None: + if org_ is not None and source_ == "ngc_private": repo_ = f"org/{org_}/team/{team_}" if team_ is not None else f"org/{org_}" else: repo_ = "Project-MONAI/model-zoo/hosting_storage_v1"