-
Notifications
You must be signed in to change notification settings - Fork 709
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
Fix KeyError:'label'
in classification folder dataset
#175
Fix KeyError:'label'
in classification folder dataset
#175
Conversation
Hi, Line 48 in 8c1a04f
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good to me!
visualizer.add_image(image=vis_img, title="Segmentation Result") | ||
self._add_images(visualizer, pl_module, Path(filename)) | ||
visualizer.close() | ||
if isinstance(outputs, dict) and "mask" in outputs.keys(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good if we could also visualize the results when no masks are not available, but we could address this separately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly, similar to what @alexriedel1 proposed. A separate PR would address this
Hi @alexriedel1, yes, that would definitely make sense. I've created this PR as a hotfix to address this bug. Not sure if I have time to address the classification visualization issue today, but it's been on our list for a while. Perhaps, we could address that in a separate PR? |
Description
This hotfix proposes a fix to return
label
infolder
dataset whenclassification
task is chosen. Currently thefolder
dataset doesn't returnlabel
inclassification
, which ultimately causes a failed validation.PR also bumps up the black version due to a version dependency, resulting in some changes in some modules.
Fixes Issues with heatmap scaling when training without masks #173
Changes
Checklist