-
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
Add segmentation mask to inference output #242
Conversation
…o feature/av/inferencer_heatmap
tools/inference.py
Outdated
@@ -124,7 +124,7 @@ def infer(image_path: Path, inferencer: Inferencer, save_path: Optional[Path] = | |||
# path is provided, `predict` method will read the image from | |||
# file for convenience. We set the superimpose flag to True | |||
# to overlay the predicted anomaly map on top of the input image. | |||
output = inferencer.predict(image=image_path, superimpose=True) | |||
output = inferencer.predict(image=image_path, superimpose=True, overlay_mask=True) |
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.
Do you think if overlay_mask
should always be True
or optional
?
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.
Minor detail, but can you increase the line thickness of the segmentation prediction? It's a bit hard to distinguish currently.
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.
Much better, thanks!
This looks good! I'm not sure if it's only me but I do hate opencv fonts, which looks archaic! Of course, this is for another PR, but I feel like it would be nice if we have a polished output image with a moderner font. |
Description
Note
I haven't tested this with OpenVINO as the installation is broken on my windows machine.
Changes
Checklist