Skip to content

Commit f4215f1

Browse files
committed
add validation transform
1 parent c89339d commit f4215f1

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

segmentation/JSRT/config/train_test.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ modal_num = 1
1616

1717
# data transforms
1818
train_transform = [NormalizeWithMeanStd, LabelConvert, RandomCrop, LabelToProbability]
19+
valid_transform = [NormalizeWithMeanStd, LabelConvert, LabelToProbability]
1920
test_transform = [NormalizeWithMeanStd]
2021

2122
NormalizeWithMeanStd_channels = [0]

segmentation/JSRT2/config/train_test.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ modal_num = 1
1616

1717
# data transforms
1818
train_transform = [NormalizeWithMeanStd, LabelConvert, RandomCrop, LabelToProbability]
19+
valid_transform = [NormalizeWithMeanStd, LabelConvert, LabelToProbability]
1920
test_transform = [NormalizeWithMeanStd]
2021

2122
NormalizeWithMeanStd_channels = [0]
@@ -50,7 +51,7 @@ class_num = 2
5051
in_chns = 1
5152
feature_chns = [4, 16, 24, 32, 48]
5253
dropout = [0.0, 0.0, 0.3, 0.3, 0.4, 0.5]
53-
bilinear = True
54+
bilinear = True
5455

5556
[training]
5657
# list of gpus

segmentation/fetal_hc/config/train_test.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ modal_num = 1
1616

1717
# data transforms
1818
train_transform = [Rescale, RandomCrop, RandomFlip, NormalizeWithMeanStd, LabelConvert, LabelToProbability]
19+
valid_transform = [Rescale, NormalizeWithMeanStd, LabelToProbability]
1920
test_transform = [Rescale, NormalizeWithMeanStd]
2021

2122
Rescale_output_size = [256, 384]

segmentation/prostate/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ pymic_net_run test config/train_test.cfg
3636
pymic_evaluate_seg config/evaluation.cfg
3737
```
3838

39-
The obtained average Dice score by default setting should be close to 87.63%. You can set `metric = assd` in `config/evaluation.cfg` and run the evaluation command again. You will get Average Symmetric Surface Distance (ASSD) evaluation results. You can try your efforts to improve the performance with different networks or training strategies by changing the configuration file `config/train_test.cfg`.
39+
The obtained average Dice score by default setting should be close to 86.38%. You can set `metric = assd` in `config/evaluation.cfg` and run the evaluation command again. You will get Average Symmetric Surface Distance (ASSD) evaluation results. You can try your efforts to improve the performance with different networks or training strategies by changing the configuration file `config/train_test.cfg`.
4040

segmentation/prostate/config/evaluation.cfg

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ metric = dice
33
label_list = [1]
44
organ_name = prostate
55

6-
ground_truth_folder_root = /home/disk2t/data/prostate/promise12/preprocess/train
6+
ground_truth_folder_root = /home/disk2t/data/Abdomen/prostate/promise12/preprocess/train
77
segmentation_folder_root = result
88
evaluation_image_pair = ./config/data/image_test_gt_seg.csv
99

10-
ground_truth_label_convert_source = None
11-
ground_truth_label_convert_target = None
12-
segmentation_label_convert_source = None
13-
segmentation_label_convert_target = None

segmentation/prostate/config/train_test.cfg

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
tensor_type = float
44

55
task_type = seg
6-
root_dir = /home/disk2t/data/prostate/promise12/preprocess/train
6+
root_dir = /home/disk2t/data/Abdomen/prostate/promise12/preprocess/train
77
train_csv = config/data/image_train.csv
88
valid_csv = config/data/image_valid.csv
99
test_csv = config/data/image_test.csv
@@ -16,6 +16,7 @@ modal_num = 1
1616

1717
# data transforms
1818
train_transform = [NormalizeWithMeanStd, RandomFlip, RandomCrop, LabelToProbability]
19+
valid_transform = [NormalizeWithMeanStd, Pad, LabelToProbability]
1920
test_transform = [NormalizeWithMeanStd, Pad]
2021

2122

@@ -96,11 +97,11 @@ evaluation_mode = True
9697
test_time_dropout = False
9798

9899
# use test time augmentation
99-
tta_mode = 1
100+
tta_mode = 0
100101

101-
infer_sliding_window = 1
102-
sliding_window_size = [272, 480]
103-
sliding_window_stride = [272, 480]
102+
sliding_window_enable = True
103+
sliding_window_size = [96, 96, 96]
104+
sliding_window_stride = [96, 96, 96]
104105

105106

106107

0 commit comments

Comments
 (0)