How to get minimalized segmentation #2271
-
Beta Was this translation helpful? Give feedback.
Answered by
samet-akcay
Aug 26, 2024
Replies: 1 comment 3 replies
-
You can try to set a higher threshold manually, so only higher values (warmer colors on the heatmap) will be included into segmentation, change
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As @abc-125 mentioned, you could try a different model that suits your needs. For the existing model you are using, you could check the
AnomalyMapGenerator
module, and post-processing steps. For example, this is the post-processing steps for PatchCore.https://github.com/openvinotoolkit/anomalib/blob/b7188db4e49c8443a531d932927395807d52b1a6/src/anomalib/models/image/patchcore/anomaly_map.py#L13-L28
sigma
is a parameter that defines the gaussian kernel size, which smooths the heatmap. You could play with this parameter to see if a smallersigma
gives you smaller detection output