Skip to content

Commit 4d846be

Browse files
committed
doctest
1 parent 99c7042 commit 4d846be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lightning/pytorch/utilities/model_registry.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ def _determine_model_folder(model_name: str, default_root_dir: str) -> str:
126126
if not model_name:
127127
raise ValueError(f"Invalid model registry: '{model_name}'")
128128
# download the latest checkpoint from the model registry
129-
local_model_dir = os.path.join(default_root_dir, model_name.replace("/", "_"))
129+
model_name = model_name.replace("/", "_")
130+
model_name = model_name.replace(":", "_")
131+
local_model_dir = os.path.join(default_root_dir, model_name)
130132
return local_model_dir
131133

132134

0 commit comments

Comments
 (0)