dvc: '.../plots/metrics/metrics' - file type error
Using the dvclive.lightning.DVCLiveLogger
with dir="data/train/dvclive"
, I can see the plots of the metrics in the “Plots” view of the VS Code DVC extension. But at the top where it shows the selected experiments, it displays an error with message:
‘data/train/dvclive/plots/metrics/metrics’ - file type error Only JSON, YAML, CSV and TSV formats are supported.
The summary metrics are stored in data/train/dvclive/metrics.json
and the .tsv
files of the logged metrics are in data/train/dvclive/plots/metrics/
. There exists no file named metrics
without extension inside this folder.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 20 (8 by maintainers)
It only happens when
dvc.lock
is missing, in which casedvc_data.fs.DataFileSystem.ls(data/train/plots/metrics)
does not know ifdata/train/plots/metrics
is a directory or file here. It assumes it is a file anddvc_data.fs.DataFileSystem.ls("data/train/plots/metrics")
returns itself.LocalFileSystem.ls(path)
only returns subpaths and fails ifpath
is a file, so not sure if it’s expected thatdvc_data.fs.DataFileSystem.ls(path)
returnspath
itself. cc @efiopYes,
dvc plots diff
also reports this error. Though both in the CLI output and VS Code Extension “Plots” view the path is now “data/train/plots/metrics” (which is the correct path) after I merged some code and run some trial experiments to test my DVC + Ray + AWS setup.This was after I started a new run with
dvc exp run
(using the extension’s “Run Experiment” button). My base commit has no validtrain
stage output as I just set up the experiment pipeline with DVCLive.