Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed keys in data configs to fit AnomalibDataModule parameters #2032

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions configs/data/avenue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ init_args:
frames_between_clips: 1
target_frame: last
image_size: [256, 256]
center_crop: null
normalization: imagenet
transform: null
train_batch_size: 32
eval_batch_size: 32
num_workers: 8
transform_config_train: null
transform_config_eval: null
train_transform: null
eval_transform: null
val_split_mode: from_test
val_split_ratio: 0.5
seed: null
7 changes: 3 additions & 4 deletions configs/data/btech.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ init_args:
root: "./dtasets/BTech"
category: "01"
image_size: [256, 256]
center_crop: null
normalization: imagenet
transform: null
train_batch_size: 32
eval_batch_size: 32
num_workers: 8
transform_config_train: null
transform_config_eval: null
train_transform: null
eval_transform: null
test_split_mode: from_dir
test_split_ratio: 0.2
val_split_mode: same_as_test
Expand Down
7 changes: 3 additions & 4 deletions configs/data/folder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ init_args:
normal_split_ratio: 0
extensions: [".png"]
image_size: [256, 256]
center_crop: null
normalization: imagenet
transform: null
train_batch_size: 32
eval_batch_size: 32
num_workers: 8
task: segmentation
transform_config_train: null
transform_config_eval: null
train_transform: null
eval_transform: null
test_split_mode: from_dir
test_split_ratio: 0.2
val_split_mode: same_as_test
Expand Down
7 changes: 3 additions & 4 deletions configs/data/kolektor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ class_path: anomalib.data.Kolektor
init_args:
root: "./datasets/kolektor"
image_size: [256, 256]
center_crop: null
normalization: imagenet
transform: null
train_batch_size: 32
eval_batch_size: 32
num_workers: 8
transform_config_train: null
transform_config_eval: null
train_transform: null
eval_transform: null
test_split_mode: from_dir
test_split_ratio: 0.2
val_split_mode: same_as_test
Expand Down
7 changes: 3 additions & 4 deletions configs/data/mvtec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ init_args:
root: ./datasets/MVTec
category: bottle
image_size: [256, 256]
center_crop: null
normalization: imagenet
transform: null
train_batch_size: 32
eval_batch_size: 32
num_workers: 8
task: segmentation
transform_config_train: null
transform_config_eval: null
train_transform: null
eval_transform: null
test_split_mode: from_dir
test_split_ratio: 0.2
val_split_mode: same_as_test
Expand Down
7 changes: 3 additions & 4 deletions configs/data/mvtec_3d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ init_args:
root: ./datasets/MVTec3D
category: "bagel"
image_size: [256, 256]
center_crop: null
normalization: imagenet
transform: null
train_batch_size: 32
eval_batch_size: 32
num_workers: 8
transform_config_train: null
transform_config_eval: null
train_transform: null
eval_transform: null
test_split_mode: from_dir
test_split_ratio: 0.2
val_split_mode: same_as_test
Expand Down
7 changes: 3 additions & 4 deletions configs/data/shanghaitec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ init_args:
frames_between_clips: 1
target_frame: LAST
image_size: [256, 256]
center_crop: null
normalization: imagenet
transform: null
train_batch_size: 32
eval_batch_size: 32
num_workers: 8
transform_config_train: null
transform_config_eval: null
train_transform: null
eval_transform: null
val_split_mode: FROM_TEST
val_split_ratio: 0.5
seed: null
7 changes: 3 additions & 4 deletions configs/data/ucsd_ped.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ init_args:
frames_between_clips: 10
target_frame: LAST
image_size: [256, 256]
center_crop: null
normalization: imagenet
transform: null
train_batch_size: 8
eval_batch_size: 1
num_workers: 8
transform_config_train: null
transform_config_eval: null
train_transform: null
eval_transform: null
val_split_mode: FROM_TEST
val_split_ratio: 0.5
seed: null
7 changes: 3 additions & 4 deletions configs/data/visa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ init_args:
root: "./datasets/visa"
category: "capsules"
image_size: [256, 256]
center_crop: null
normalization: imagenet
transform: null
train_batch_size: 32
eval_batch_size: 32
num_workers: 8
transform_config_train: null
transform_config_eval: null
train_transform: null
eval_transform: null
test_split_mode: from_dir
test_split_ratio: 0.2
val_split_mode: same_as_test
Expand Down
Loading