Question about PaDiM model validation and testing #2319
-
Describe the bugDoes PaDiM model require validation and testing? But when I use the PaDiM model with a custom dataset, the default setting automatically splits the normal dataset for validation and testing the dataset. (These three: test_split_ratio, val_split_ratio, and noraml_split_ratio Thank you! DatasetN/A ModelN/A Steps to reproduce the behaviorna OS informationOS information: na
Expected behaviorna ScreenshotsNo response Pip/GitHubpip What version/branch did you use?No response Configuration YAMLna Logsna Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
yes I have the same issue, I want to use all my images for training and test on images later |
Beta Was this translation helpful? Give feedback.
-
Padim, does not need abnormal images during training, but does need some during validation, during which it computes the adaptive threshold using normal and abnormal images. This threshold value is then used to compute the performance on the test dataset. If you don't want to split your dataset, then you have two options: (i) Use synthetic normal images to compute the threshold, or (ii) do not compute the threshold, which means do not compute the test metrics. If you want to do follow the first option, you could refer to this documentation |
Beta Was this translation helpful? Give feedback.
-
I'm closing this for now, but feel free to comment, re-open if you have further questions/comments. Thanks! |
Beta Was this translation helpful? Give feedback.
Padim, does not need abnormal images during training, but does need some during validation, during which it computes the adaptive threshold using normal and abnormal images. This threshold value is then used to compute the performance on the test dataset.
If you don't want to split your dataset, then you have two options: (i) Use synthetic normal images to compute the threshold, or (ii) do not compute the threshold, which means do not compute the test metrics.
If you want to do follow the first option, you could refer to this documentation
https://anomalib.readthedocs.io/en/v1.1.1/markdown/guides/how_to/data/custom_data.html#with-only-normal-images