Skip to content
Discussion options

You must be logged in to vote

Copying the answer from #579 (reply in thread)

The segmentation maps are generated from the threshold. So while the heatmap might show something the threshold determines the value above which the predicted values are considered as anomalies. Normalization ensures that this threshold is centred to 0.5. So, when generating the segmentation masks the anomalous regions are the ones with values greater than 0.5.

  1. Since this threshold is calculated from the validation images, I would suggest adding more images with ground truth masks in your dataset.
  2. You can also have a look at the adaptive threshold class https://github.com/openvinotoolkit/anomalib/blob/main/anomalib/utils/metrics/adaptive_thr…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@djdameln
Comment options

Answer selected by djdameln
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #582 on September 26, 2022 07:48.