Selectable scoring functions for Visual Anomaly Detection
X
number of Gaussian probability distributions are learned from the data where X
is the number of components (or clusters) defined in the learning block page. Samples are assigned to one of the distributions based on the probability that it belongs to each. We use Sklearn under the hood and the anomaly score corresponds to the log-likelihood
.Settings for Visual Anomaly Detection
96x96
ImageNet weights. We use 96x96 weights since we’ll only being used the start of MobileNet to reduce to 1/8th input.
Trained model view for Visual Anomaly Detection.
Model testing view with sample selected.
anomaly
or no anomaly
in your test dataset so they can be used in the F1 score calculation. We are working on making this more flexible.no anomaly
while the expected output is an anomaly
. To adjust this prediction, you can set the Confidence thresholds, where you can also see the default or suggested value: “Suggested value is 16.6, based on the top anomaly scores in the training dataset.”:
View confidence thresholds.
Set confidence thresholds.
6
. This gives results closer to our expectations:
Model testing view and sample selected after confidence thresholds modified.
(inputWidth / 8) / 2 - 1
for GMM and as inputWidth / 8
for Patchcore.np.max(scores)
where scores are the scores of the training dataset.