Skip to content

plots: How to display images and plots per step #1640

@daavoo

Description

@daavoo

Depends on treeverse/dvclive#425

In the current demo setup, we override the saved image and plot at the end of each step.

Unless using checkpoints, this makes it impossible to visualize images and plots logged at previous steps. And even using checkpoints the current UI doesn't easily allow to check the image and plot from previous steps (requires Apply to workspace and refreshing the view)

In order to enable visualizing images from previous steps with or without checkpoints, in dvclive we implemented the log_image function in a way that images are saved under a step subfolder (https://dvc.org/doc/dvclive/api-reference/live/log_image#step-updates). (not true anymore, need to reconsider this, edited by @shcheklein)

However, using log_image in the VSCode UI produces a noisy output, as each step image is displayed in an individual row:

Captura de Pantalla 2022-05-02 a las 17 49 21

I believe that allowing to display "per-step" images and plots is a relevant scenario for VSCode.


In tensorboard, logging an image each step gets rendered using a slider:

confusion matrix
predictions


Related treeverse/dvc-render#6

Metadata

Metadata

Labels

A: plotsArea: plots webview, side panel and everything relatedenhancementNew feature or requestpriority-p1Regular product backlogtriage🎨 designNeeds design input or is being actively worked on📦 productNeeds product input or is being actively worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions