-
Notifications
You must be signed in to change notification settings - Fork 8
/
config_2d.yml
78 lines (63 loc) · 1.59 KB
/
config_2d.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
model_params:
model: &model VNet
encoder_name: &encoder_name "resnet34"
group_norm: &group_norm False
classes: 7
center: !!str ¢er 'none'
attention_type: !!str &attention_type 'none'
reslink: False
multi_task: &multi_task False
args:
expdir: "src"
logdir: &logdir "./logs/structseg"
baselogdir: "./logs/structseg"
distributed_params:
opt_level: O1
stages:
state_params:
main_metric: &reduce_metric dice
minimize_metric: False
criterion_params:
criterion: &criterion MultiDiceLoss
activation: 'Softmax'
weight: [0.1, 0.2, 0.2, 0.3, 0.4, 0.4, 0.4]
dice_weight: 0.9
data_params:
batch_size: 16
num_workers: 4
drop_last: False
# drop_last: True
image_size: &image_size 512
train_csv: "./csv/train_0.csv"
valid_csv: "./csv/valid_0.csv"
data: "2D"
stage1:
optimizer_params:
optimizer: Adam
lr: 0.0001
scheduler_params:
scheduler: OneCycleLRWithWarmup
num_steps: &num_epochs 50
lr_range: [0.0005, 0.00001]
warmup_steps: 5
momentum_range: [0.85, 0.95]
state_params:
num_epochs: *num_epochs
callbacks_params:
loss:
callback: CriterionCallback
optimizer:
callback: OptimizerCallback
accumulation_steps: 1
dice:
callback: MultiDiceCallback
activation: 'Softmax'
scheduler:
callback: SchedulerCallback
reduce_metric: *reduce_metric
# mode: 'batch'
saver:
callback: CheckpointCallback
monitoring_params:
project: "SS_Task3"
tags: [*model, *encoder_name, *criterion]