Datasets:
Modalities:
Image
Formats:
imagefolder
Languages:
English
Size:
10K - 100K
Tags:
anomaly-detection
continual-learning
test-time-adaptation
medical-imaging
industrial-inspection
License:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,5 +1,69 @@
|
|
| 1 |
-
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CTTA-AD Benchmarks
|
| 2 |
+
|
| 3 |
+
Dataset collection for **CTTA-AD: Continual Test-Time Adaptation for Unified Few-Shot Visual Anomaly Detection** (AAAI 2027 submission).
|
| 4 |
+
|
| 5 |
+
## Datasets
|
| 6 |
+
|
| 7 |
+
| Dataset | Domain | Categories | Train Normal | License |
|
| 8 |
+
|---|---|---|---|---|
|
| 9 |
+
| MVTec-AD | Industrial | 15 | 209–391 per category | CC BY-NC-SA 4.0 |
|
| 10 |
+
| VisA | Industrial | 12 | 400–905 per category | CC BY-NC-SA 4.0 |
|
| 11 |
+
| MVTec-LOCO | Logical | 5 | varies | CC BY-NC-SA 4.0 |
|
| 12 |
+
| BrainMRI | Medical | 1 | 7,500 | Research only |
|
| 13 |
+
| LiverCT | Medical | 1 | 1,542 | Research only |
|
| 14 |
+
| RESC | Medical | 1 | 4,297 | Research only |
|
| 15 |
+
| HIS | Medical | 1 | 5,088 | Research only |
|
| 16 |
+
| OCT17 | Medical | 1 | 11,017 | Research only |
|
| 17 |
+
| ChestXray | Medical | 1 | 100 | Research only |
|
| 18 |
+
|
| 19 |
+
## Folder Structure
|
| 20 |
+
|
| 21 |
+
All datasets follow this unified format:
|
| 22 |
+
|
| 23 |
+
DatasetName/
|
| 24 |
+
├── category_name/
|
| 25 |
+
│ ├── train/
|
| 26 |
+
│ │ └── good/ # normal training images
|
| 27 |
+
│ ├── test/
|
| 28 |
+
│ │ ├── good/ # normal test images
|
| 29 |
+
│ │ └── <defect_type>/ # anomalous test images
|
| 30 |
+
│ └── ground_truth/ # pixel-level masks (where available)
|
| 31 |
+
|
| 32 |
+
**Notes:**
|
| 33 |
+
- Medical datasets use `Ungood` as the anomaly folder name
|
| 34 |
+
- OCT17 train is split into `good_a` and `good_b` (>10k files)
|
| 35 |
+
- ChestXray anomaly is split into `Ungood_a` and `Ungood_b` (>10k files)
|
| 36 |
+
|
| 37 |
+
## Download and Setup
|
| 38 |
+
|
| 39 |
+
```python
|
| 40 |
+
from huggingface_hub import snapshot_download
|
| 41 |
+
|
| 42 |
+
snapshot_download(
|
| 43 |
+
repo_id="Hammadhaideerr/CTTA-AD-Benchmarks",
|
| 44 |
+
repo_type="dataset",
|
| 45 |
+
local_dir="data/",
|
| 46 |
+
)
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
Or download a single dataset:
|
| 50 |
+
|
| 51 |
+
```python
|
| 52 |
+
from huggingface_hub import snapshot_download
|
| 53 |
+
|
| 54 |
+
snapshot_download(
|
| 55 |
+
repo_id="Hammadhaideerr/CTTA-AD-Benchmarks",
|
| 56 |
+
repo_type="dataset",
|
| 57 |
+
local_dir="data/BrainMRI/",
|
| 58 |
+
allow_patterns="BrainMRI/*",
|
| 59 |
+
)
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
## Citation
|
| 63 |
+
|
| 64 |
+
If you use these datasets, please cite the original dataset papers alongside our work:
|
| 65 |
+
|
| 66 |
+
- **MVTec-AD:** Bergmann et al., CVPR 2019
|
| 67 |
+
- **VisA:** Zou et al., ECCV 2022
|
| 68 |
+
- **MVTec-LOCO:** Bergmann et al., IJCV 2022
|
| 69 |
+
- **BMAD (BrainMRI, LiverCT, RESC, HIS, OCT17, ChestXray):** Bao et al., CVPR Workshops 2024
|