Skip to content

Commit

Permalink
fix artifact path
Browse files Browse the repository at this point in the history
  • Loading branch information
dberenbaum committed Aug 18, 2023
1 parent 2c164ca commit d1c2874
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dvclive/dvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ def get_dvc_stage_template(live):
images_path = (plots_path / Image.subfolder).as_posix()
outs.append(images_path)
for o, cache in live._outs.items():
artifact_path = Path(os.getcwd()) / o
artifact_path = artifact_path.relative_to(root_dir).as_posix()
artifact_path = Path(os.path.relpath(o, root_dir)).as_posix()
if cache:
outs.append(artifact_path)
else:
Expand Down

0 comments on commit d1c2874

Please sign in to comment.