Skip to content

Commit d2789f5

Browse files
committed
update ssl configures
update ssl configures
1 parent c76ed9e commit d2789f5

7 files changed

Lines changed: 8 additions & 16 deletions

File tree

seg_ssl/ACDC/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ in_chns = 1
8686
feature_chns = [16, 32, 64, 128, 256]
8787
dropout = [0.0, 0.0, 0.0, 0.5, 0.5]
8888
bilinear = True
89-
deep_supervise= False
89+
multiscale_pred = False
9090
```
9191

9292
For training, we use a combinatin of DiceLoss and CrossEntropyLoss, and train the network by the `Adam` optimizer. The maximal iteration is 30k, and the training is early stopped if there is not performance improvement on the validation set for 10k iteratins. The learning rate scheduler is `ReduceLROnPlateau`. The corresponding configuration is:
@@ -185,13 +185,16 @@ pymic_run test config/unet2d_uamt.cfg
185185
The configuration file for UPRC is `config/unet2d_urpc.cfg`. This method requires deep supervision and pyramid prediction of a network. The network setting is:
186186

187187
```bash
188+
[network]
188189
net_type = UNet2D
189190
class_num = 4
190191
in_chns = 1
191192
feature_chns = [16, 32, 64, 128, 256]
192193
dropout = [0.0, 0.0, 0.0, 0.5, 0.5]
193194
bilinear = True
194-
deep_supervise= True
195+
multiscale_pred = True
196+
[training]
197+
deep_supervise = True
195198
```
196199

197200
The setting for URPC training is:

seg_ssl/ACDC/config/unet2d_baseline.cfg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ early_stop_patience = 10000
7777

7878
ckpt_save_dir = model/unet2d_baseline
7979

80-
# start iter
81-
iter_start = 0
8280
iter_max = 30000
8381
iter_valid = 100
8482
iter_save = 30000

seg_ssl/ACDC/config/unet2d_cct.cfg

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ in_chns = 1
5858
feature_chns = [16, 32, 64, 128, 256]
5959
dropout = [0.0, 0.0, 0.0, 0.5, 0.5]
6060
bilinear = True
61+
multiscale_pred = False
6162

6263
# parameters specific to CCT
6364
VAT_it = 2
@@ -67,7 +68,7 @@ Uniform_range = 0.3
6768

6869
[training]
6970
# list of gpus
70-
gpus = [1]
71+
gpus = [0]
7172

7273
loss_type = [DiceLoss, CrossEntropyLoss]
7374
loss_weight = [0.5, 0.5]
@@ -86,8 +87,6 @@ early_stop_patience = 10000
8687

8788
ckpt_save_dir = model/unet2d_cct
8889

89-
# start iter
90-
iter_start = 0
9190
iter_max = 30000
9291
iter_valid = 100
9392
iter_save = [1000, 30000]

seg_ssl/ACDC/config/unet2d_cps.cfg

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ multiscale_pred = False
6262

6363
[training]
6464
# list of gpus
65-
gpus = [0]
65+
gpus = [1]
6666

6767
loss_type = [DiceLoss, CrossEntropyLoss]
6868
loss_weight = [0.5, 0.5]
@@ -81,8 +81,6 @@ early_stop_patience = 10000
8181

8282
ckpt_save_dir = model/unet2d_cps
8383

84-
# start iter
85-
iter_start = 0
8684
iter_max = 30000
8785
iter_valid = 100
8886
iter_save = [1000, 30000]

seg_ssl/ACDC/config/unet2d_em.cfg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ early_stop_patience = 10000
8181

8282
ckpt_save_dir = model/unet2d_em
8383

84-
# start iter
85-
iter_start = 0
8684
iter_max = 30000
8785
iter_valid = 100
8886
iter_save = [1000, 30000]

seg_ssl/ACDC/config/unet2d_uamt.cfg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ early_stop_patience = 10000
8181

8282
ckpt_save_dir = model/unet2d_uamt
8383

84-
# start iter
85-
iter_start = 0
8684
iter_max = 30000
8785
iter_valid = 100
8886
iter_save = [1000,30000]

seg_ssl/ACDC/config/unet2d_urpc.cfg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ early_stop_patience = 10000
8383
ckpt_save_dir = model/unet2d_urpc
8484
ckpt_prefix = unet2d_urpc
8585

86-
# start iter
87-
iter_start = 0
8886
iter_max = 30000
8987
iter_valid = 100
9088
iter_save = [1000, 30000]

0 commit comments

Comments
 (0)