2.7.0: `artifacts` section.
New Features
artifacts
section
You can now pass metadata to Live.log_artifact
that will be written to a new artifacts
section in the dvc.yaml
located at {Live.dir}/{Live.dvc_file}
.
Available metadata fields are:
type: Optional[str] = None,
name: Optional[str] = None,
desc: Optional[str] = None,
labels: Optional[List[str]] = None,
meta: Optional[Dict[str, Any]] = None,
When passing type="model"
, the artifact will be identified by Studio and automatically included in the Studio Model Registry.
- Example
from pathlib import Path
from dvclive import Live
Path("model.pth").write_text("foo")
with Live(save_dvc_exp=True) as live:
live.log_artifact(
"model.pth",
type="model",
name="mymodel",
desc="Finetuned ResNet50",
)
# dvclive/dvc.yaml
artifacts:
mymodel:
path: ../model.pth
type: model
desc: Finetuned ResNet50
Auto-initialization of DVC Repo
When inside a non-empty Git Repository, DVCLive will auto-initialize a DVC Repository when needed.
What's Changed
- Add DVCLive-Quickstart by @daavoo in #530
- studio: Support
DVC_
env vars. by @daavoo in #533 - Support
artifacts
section by @daavoo in #521 - feat(sklplots): add confusion matrix normalized option by @shcheklein in #538
- revert get_dvc_stage_template by @dberenbaum in #540
- Auto-initialize DVC repo by @dberenbaum in #539
New Contributors
- @dependabot made their first contribution in #503
Full Changelog: 2.6.4...2.7.0