-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_two_stage.yaml
83 lines (68 loc) · 1.21 KB
/
config_two_stage.yaml
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
model_dilation:
type: FR_UNet
args:
{}
model_tuning:
type: RMR
args:
{}
loss_BCE:
type: BCELoss
args:
{}
loss_DICE:
type: FocalLoss
args:
{}
loss_WBCE:
type: BCELossWithWeights
args:
{}
optimizer:
type: Adam
args:
lr: 1e-4
weight_decay: 1e-5
lr_scheduler:
type: CosineAnnealingLR
args:
T_max: 80
# eta_min: 1e-5
# #对model1的优化器
# optimizer1:
# type: Adam
# args:
# lr: 1e-4
# weight_decay: 1e-5
# #对model2的优化器
# optimizer2:
# type: Adam
# args:
# lr: 1e-4
# weight_decay: 1e-5
# #对model1 的学习率调整
# lr_scheduler1:
# type: CosineAnnealingLR
# args:
# T_max: 40
# #对model2 的学习率调整
# lr_scheduler2:
# type: CosineAnnealingLR
# args:
# T_max: 40
epochs: 80
save_dir: saved/
val_per_epochs: 1
save_period: 2
tensorboard: true
threshold: 0.5
threshold_low: 0.3
DTI: false
amp: true
tta: false
CCC: false
patch_size: 48
patch_stride: 6
freeze_model1: True
pretrained_model1_path: /root/FR-UNet-master/saved/FR_UNet/4-13-dilation-supervised-only-with-F5/checkpoint-epoch40.pth
# pretrained_model2_path: /root/FR-UNet-master/saved/FR_UNet/4-5-MIM-Pretrain-allmask/checkpoint-epoch40.pth