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.
38 lines
1016 B
YAML
38 lines
1016 B
YAML
seed: 42
|
|
accelerator: "cuda"
|
|
default_root_dir: "results"
|
|
|
|
tiling:
|
|
image_size: [256, 256]
|
|
tile_size: [128, 128]
|
|
stride: 128
|
|
|
|
normalization_stage: image # on what level we normalize, options: [tile, image, none]
|
|
thresholding_stage: image # stage at which we apply threshold, options: [tile, image]
|
|
|
|
data:
|
|
class_path: anomalib.data.MVTecAD
|
|
init_args:
|
|
root: ./datasets/MVTecAD
|
|
category: bottle
|
|
train_batch_size: 32
|
|
eval_batch_size: 32
|
|
num_workers: 8
|
|
train_augmentations: null
|
|
val_augmentations: null
|
|
test_augmentations: null
|
|
augmentations: null
|
|
test_split_mode: from_dir
|
|
test_split_ratio: 0.2
|
|
val_split_mode: same_as_test
|
|
val_split_ratio: 0.5
|
|
|
|
SeamSmoothing:
|
|
apply: True # if this is applied, area around tile seams are is smoothed
|
|
sigma: 2 # sigma of gaussian filter used to smooth this area
|
|
width: 0.1 # width factor, multiplied by tile dimension gives the region width around seam which will be smoothed
|
|
|
|
TrainModels:
|
|
model:
|
|
class_path: Padim
|