From 3c139ec76640b9b83d1808d66d266bf84a9a9f11 Mon Sep 17 00:00:00 2001 From: Dean Date: Fri, 12 Nov 2021 10:21:51 +0000 Subject: [PATCH] fix path separator in neptune logger --- pytorch_lightning/loggers/neptune.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytorch_lightning/loggers/neptune.py b/pytorch_lightning/loggers/neptune.py index f7c611ed787ce..8ef811cc0c59d 100644 --- a/pytorch_lightning/loggers/neptune.py +++ b/pytorch_lightning/loggers/neptune.py @@ -544,7 +544,7 @@ def after_save_checkpoint(self, checkpoint_callback: "ReferenceType[ModelCheckpo @staticmethod def _get_full_model_name(model_path: str, checkpoint_callback: "ReferenceType[ModelCheckpoint]") -> str: """Returns model name which is string `modle_path` appended to `checkpoint_callback.dirpath`.""" - expected_model_path = f"{checkpoint_callback.dirpath}/" + expected_model_path = f"{checkpoint_callback.dirpath}{os.sep}" if not model_path.startswith(expected_model_path): raise ValueError(f"{model_path} was expected to start with {expected_model_path}.") return model_path[len(expected_model_path) :]