Skip to content

Commit 429f732

Browse files
authored
fix: use as_posix()
1 parent 3b786c7 commit 429f732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lightning/pytorch/loggers/mlflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def _scan_and_log_checkpoints(self, checkpoint_callback: ModelCheckpoint) -> Non
363363
aliases = ["latest", "best"] if p == checkpoint_callback.best_model_path else ["latest"]
364364

365365
# Artifact path on mlflow
366-
artifact_path = str(Path(self._checkpoint_path_prefix, Path(p).stem))
366+
artifact_path = Path(self._checkpoint_path_prefix, Path(p).stem).as_posix()
367367

368368
# Log the checkpoint
369369
self.experiment.log_artifact(self._run_id, p, artifact_path)

0 commit comments

Comments
 (0)