forked from wolny/pytorch-3dunet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
train_config.yml
104 lines (102 loc) · 2.64 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
104
# Trained on data from the 2018 Kaggle Data Science Bowl: https://www.kaggle.com/c/data-science-bowl-2018/data
manual_seed: 0
model:
name: UNet2D
in_channels: 1
out_channels: 1
# use Groupnorm instead of Batchnorm for DSB; Batchnorm introduces artifacts around nuclei due to the difference
# in intensity distribution between images with large and small cells
layer_order: gcr
num_groups: 8
f_maps: [32, 64, 128]
#conv_padding: 0
final_sigmoid: true
is_segmentation: true
trainer:
checkpoint_dir: '/home/adrian/Datasets/DSB2018'
resume: 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:
- '/home/adrian/Datasets/DSB2018/train'
transformer:
raw:
- name: CropToFixed
size: [256, 256]
- name: Standardize
- name: RandomFlip
- name: RandomRotate90
- name: RandomRotate
axes: [[2, 1]]
angle_spectrum: 30
mode: reflect
- name: ElasticDeformation
spline_order: 3
execution_probability: 0.2
- name: AdditiveGaussianNoise
execution_probability: 0.1
- name: AdditivePoissonNoise
execution_probability: 0.1
- name: ToTensor
expand_dims: true
label:
- name: CropToFixed
size: [256, 256]
- name: RandomFlip
- name: RandomRotate90
- name: RandomRotate
axes: [[2, 1]]
angle_spectrum: 30
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:
- '/home/adrian/Datasets/DSB2018/train'
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