Skip to content

Commit df5dee6

Browse files
authoredMar 25, 2025··
fix: MLFlowLogger artifact_path (#20669)
* fix: MLFlowLogger artifact_path * fix: use `as_posix()`
1 parent 44eb839 commit df5dee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/lightning/pytorch/loggers/mlflow.py

+1-1
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 = 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)
Please sign in to comment.