anomalib-adding-a-datamodule
Installation
SKILL.md
Adding a New Dataset / DataModule
anomalib splits data support into two layers per source, both under src/anomalib/data/:
datasets/image/<name>.py— atorch-facingAnomalibDatasetsubclass (one dataset = one split).datamodules/image/<name>.py— a Lightning-facingAnomalibDataModulesubclass that owns train/val/test dataloaders and split logic.
(Use datasets/video/ and datamodules/video/, or depth/, for other modalities — the pattern is identical.)