mirror of
https://github.com/hanzoai/anomalib.git
synced 2026-10-30 18:48:11 +00:00
The previous commit was meant to remove .github/workflows and removed every tracked path instead — 892 files, the whole repo. This puts back the 874 that were never in scope; the eighteen workflow files stay gone, for the reasons that commit gives. Content is byte-identical to 9d2aec9 outside .github/workflows.
16 lines
311 B
Plaintext
16 lines
311 B
Plaintext
# Import the datamodule
|
|
from anomalib.data import Folder
|
|
|
|
# Create the datamodule
|
|
datamodule = Folder(
|
|
name="hazelnut_toy",
|
|
root="datasets/hazelnut_toy",
|
|
normal_dir="good",
|
|
abnormal_dir="crack",
|
|
mask_dir="mask/crack",
|
|
normal_split_ratio=0.2,
|
|
)
|
|
|
|
# Setup the datamodule
|
|
datamodule.setup()
|