-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image plots show proper message and disable button if image is not available #2277
Comments
Depends on iterative/dvc#7692 & #1649. |
@shcheklein revisit this, try to reproduce. We still need error messages, or a signal that plot doesn't exist in the commit. |
The following is a more detailed example of the OP.
Mispredicted is a directory of images that are produced by a stage:
Every time an experiment is run the contents of @skshetry we need to consider this scenario whilst working through plot errors. Is it possible to do this with the existing DVC code or do we need to add some indicator to the Original |
Can we treat the directory more like a dataset and each image more like a datapoint? |
|
@skshetry I don't think it's related to whether an experiment is running. One revision contains the file @mattseddon Is there an error returned here? I don't see one when testing this. I think we just need to show a different message here than 'No plot to display: refresh` (something like N/A or no image at this revision). I see an output like this: edit: updated json output to reflect #9146 {
"data": {
"dir/img1.png": [
{
"type": "image",
"revisions": [
"workspace"
],
"url": "/Users/dave/repo/dvc_plots/workspace_dir_img1.png"
}
],
"dir/img2.png": [
{
"type": "image",
"revisions": [
"workspace"
],
"url": "/Users/dave/repo/dvc_plots/workspace_dir_img2.png"
},
{
"type": "image",
"revisions": [
"main"
],
"url": "/Users/dave/repo/dvc_plots/main_dir_img2.png"
}
]
}
} @shcheklein What do you want to show in this scenario? Some thoughts on what I'd expect:
|
This comment was marked as outdated.
This comment was marked as outdated.
I completely fluffed this. Didn't check the new output. Everything seems to be behaving as it needs to. I will open a PR to close this issue.
I can sort the images before sending them to the webview initially but the user can reorder them which makes future updates more difficult.
|
Thanks @mattseddon! Not sure if we want a separate issue for the rest of the discussion for how to organize these images, which is probably not p1.
I meant not just sorting, but making them collapsible by directory.
🤔 I was thinking if we have collapsible directories, then we could put the number of images per revision next to those. For example, imagine the paths below are directories ( |
Sorry folks, just catching up a bit. It feels like grouping, etc is a separate improvement that can be done (or not) independently from this ticket? For this specific ticket - even an empty box (and we don't even need the border) is fine I think. |
This image doesn't exist at in the experiment, refresh doesn't make much sense here.
Might depend on plots error handing cc @mattseddon @pared
The text was updated successfully, but these errors were encountered: