-
-
Notifications
You must be signed in to change notification settings - Fork 512
/
train_config.yml
103 lines (101 loc) · 2.46 KB
/
train_config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Trained on data from the 2018 Kaggle Data Science Bowl: https://www.kaggle.com/c/data-science-bowl-2018/data
model:
name: UNet2D
in_channels: 1
out_channels: 1
layer_order: bcr
num_groups: 8
f_maps: [32, 64, 128]
final_sigmoid: true
is_segmentation: true
trainer:
checkpoint_dir: PATH_TO_CHECKPOINT_DIR
resume: null
pre_trained: null
validate_after_iters: 250
log_after_iters: 250
max_num_epochs: 10000
max_num_iterations: 150000
eval_score_higher_is_better: True
optimizer:
learning_rate: 0.0002
weight_decay: 0.00001
loss:
name: BCEDiceLoss
skip_last_target: true
eval_metric:
name: BlobsAveragePrecision
use_last_target: true
metric: 'ap'
lr_scheduler:
name: ReduceLROnPlateau
mode: max
factor: 0.2
patience: 30
loaders:
dataset: DSB2018Dataset
batch_size: 32
num_workers: 8
train:
file_paths:
- PATH_TO_TRAIN_DIR
transformer:
raw:
- name: CropToFixed
size: [256, 256]
- name: Standardize
- name: RandomFlip
- name: RandomRotate90
- name: RandomRotate
axes: [[2, 1]]
angle_spectrum: 45
mode: reflect
- name: ElasticDeformation
spline_order: 3
execution_probability: 0.2
- name: GaussianBlur3D
execution_probability: 0.5
- name: AdditiveGaussianNoise
execution_probability: 0.2
- name: AdditivePoissonNoise
execution_probability: 0.2
- name: ToTensor
expand_dims: true
label:
- name: CropToFixed
size: [256, 256]
- name: RandomFlip
- name: RandomRotate90
- name: RandomRotate
axes: [[2, 1]]
angle_spectrum: 45
mode: reflect
- name: ElasticDeformation
spline_order: 0
execution_probability: 0.2
- name: Relabel
- name: BlobsToMask
append_label: true
- name: ToTensor
expand_dims: true
val:
file_paths:
- PATH_TO_VAL_DIR
transformer:
raw:
- name: CropToFixed
size: [256, 256]
centered: true
- name: Standardize
- name: ToTensor
expand_dims: true
label:
- name: CropToFixed
size: [256, 256]
# always get the same crop for validation
centered: true
- name: Relabel
- name: BlobsToMask
append_label: true
- name: ToTensor
expand_dims: true