Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 Description
This PR adds support for the MVTec AD 2 dataset, which is an advanced version of the original MVTec AD dataset designed for unsupervised anomaly detection. The implementation includes support for three different test sets:
test_public/
): Contains both normal and anomalous samples with ground truth maskstest_private/
): Contains unseen test samples without ground truthtest_private_mixed/
): Contains unseen test samples with mixed anomalies without ground truthFeatures
✨ Changes
MVTecAD2
datamodule insrc/anomalib/data/datamodules/image/mvtecad2.py
MVTecAD2Dataset
class insrc/anomalib/data/datasets/image/mvtecad2.py
TestType
enum to handle different test set typesexamples/configs/data/mvtecad2.yaml
Select what type of change your PR is:
Testing
The implementation includes comprehensive tests that verify:
Usage Example
License
The MVTec AD 2 dataset will be released under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0).
Notes