iterative / studio-support

❓ DVC Studio Issues, Question, and Discussions
https://studio.iterative.ai
16 stars 1 forks source link

Missing DVCLive metrics in Studio #96

Open daavoo opened 4 months ago

daavoo commented 4 months ago

Hi there 🤗 !

I have a repository with multiple dvc.yaml, separated into directories.

In one of the directories, I am using DVCLive to log metrics.

While the experiment is running, I can see the metrics in the table but after I run dvc exp push, the metrics are reported as missing.

Reproduction repo:

https://github.com/daavoo/debug-missing-metrics


Using a custom directory model_training (this is the setup I would like to use):

image

The table looks like this:

Screenshot 2024-04-18 121137

In this setup, it looks like the running experiment causes an additional issue (column footrain is duplicated)


Importing the entire repository:

image

The table looks like this:

Screenshot 2024-04-18 121452

daavoo commented 4 months ago

The dvclive/metrics.json file is missing in the Git Ref itself:

image

daavoo commented 4 months ago

The missing metrics look like a DVCLive issue when running experiments from a CWD other than the root of the DVC repo. Changing the code to run from the root of the repo fixes the issue of missing metrics in the Git Ref:

https://github.com/daavoo/debug-missing-metrics/commit/9042c505f2db35679c99dbb1fc2ef26fcf4180c0

image

dberenbaum commented 4 months ago

Hi @daavoo! 👋

The missing metrics look like a DVCLive issue when running experiments from a CWD other than the root of the DVC repo.

Do you want to try to fix this one?

daavoo commented 4 months ago

Hi @daavoo! 👋

The missing metrics look like a DVCLive issue when running experiments from a CWD other than the root of the DVC repo.

Do you want to try to fix this one?

Hi @dberenbaum !

I most likely won't take a further look since I have found a simple enough workaround: creating and git add an empty dvclive/metrics.json before running the first experiment.