openvinotoolkit / anomalib

An anomaly detection library comprising state-of-the-art algorithms and features such as experiment management, hyper-parameter optimization, and edge inference.
https://anomalib.readthedocs.io/en/latest/
Apache License 2.0
3.63k stars 646 forks source link

[Task]: Apply anomaly detection on a single folder of Images for segmentation with no labels for supporting labelling #2210

Open hrudaykolla opened 1 month ago

hrudaykolla commented 1 month ago

What is the motivation for this task?

  1. It is a very big task to anomalous images when there are no labels of classification and or segementation when the anomalies are very small.
  2. For a model like padim which works on the distribution of the patches, a few anomalous images wont affect the distribution. So applying the model on the folder of images can result with segmentation maps with no metrics.
  3. This masks can be used for accurate labelling further.

Describe the solution you'd like

I would like a data module that accepts the images as a single folder. The results should be segmentation masks of the same images with no metrics as such.

Additional context

No response

abc-125 commented 1 month ago

This link in anomalib docs might help you: how to train with normal images only, you will have a single folder and synthetic anomalies for validation (or you can skip validation and test step entirely). You might also want to take a look at this paper, Table 3, to see how Padim works with just 10 anomalous images in the training data.