|
| 1 | +[dataset] |
| 2 | +# tensor type (float or double) |
| 3 | +tensor_type = float |
| 4 | + |
| 5 | +task_type = seg |
| 6 | +root_dir = ../../PyMIC_data/JSRT |
| 7 | +train_csv = config/data/jsrt_train_mix.csv |
| 8 | +valid_csv = config/data/jsrt_valid.csv |
| 9 | +test_csv = config/data/jsrt_test.csv |
| 10 | + |
| 11 | +train_batch_size = 8 |
| 12 | + |
| 13 | +# data transforms |
| 14 | +train_transform = [RandomCrop, RandomFlip, NormalizeWithMeanStd, LabelConvert, LabelToProbability] |
| 15 | +valid_transform = [NormalizeWithMeanStd, LabelConvert, LabelToProbability] |
| 16 | +test_transform = [NormalizeWithMeanStd] |
| 17 | + |
| 18 | +RandomCrop_output_size = [224, 224] |
| 19 | +RandomCrop_foreground_focus = False |
| 20 | +RandomCrop_foreground_ratio = None |
| 21 | +Randomcrop_mask_label = None |
| 22 | + |
| 23 | +RandomFlip_flip_depth = False |
| 24 | +RandomFlip_flip_height = True |
| 25 | +RandomFlip_flip_width = True |
| 26 | + |
| 27 | +NormalizeWithMeanStd_channels = [0] |
| 28 | + |
| 29 | +LabelConvert_source_list = [0, 255] |
| 30 | +LabelConvert_target_list = [0, 1] |
| 31 | + |
| 32 | +[network] |
| 33 | +# this section gives parameters for network |
| 34 | +# the keys may be different for different networks |
| 35 | + |
| 36 | +# type of network |
| 37 | +net_type = UNet2D |
| 38 | + |
| 39 | +# number of class, required for segmentation task |
| 40 | +class_num = 2 |
| 41 | +in_chns = 1 |
| 42 | +feature_chns = [16, 32, 64, 128, 256] |
| 43 | +dropout = [0, 0, 0.3, 0.4, 0.5] |
| 44 | +bilinear = False |
| 45 | +deep_supervise= False |
| 46 | + |
| 47 | +[training] |
| 48 | +# list of gpus |
| 49 | +gpus = [0] |
| 50 | + |
| 51 | +loss_type = NoiseRobustDiceLoss |
| 52 | +NoiseRobustDiceLoss_gamma = 1.5 |
| 53 | + |
| 54 | +# for optimizers |
| 55 | +optimizer = Adam |
| 56 | +learning_rate = 1e-3 |
| 57 | +momentum = 0.9 |
| 58 | +weight_decay = 1e-5 |
| 59 | + |
| 60 | +# for lr schedular |
| 61 | +lr_scheduler = ReduceLROnPlateau |
| 62 | +lr_gamma = 0.5 |
| 63 | +ReduceLROnPlateau_patience = 2000 |
| 64 | + |
| 65 | +ckpt_save_dir = model/unet_nrdice |
| 66 | + |
| 67 | +# start iter |
| 68 | +iter_start = 0 |
| 69 | +iter_max = 10000 |
| 70 | +iter_valid = 100 |
| 71 | +iter_save = [10000] |
| 72 | + |
| 73 | +[testing] |
| 74 | +# list of gpus |
| 75 | +gpus = [0] |
| 76 | + |
| 77 | +# checkpoint mode can be [0-latest, 1-best, 2-specified] |
| 78 | +ckpt_mode = 0 |
| 79 | +output_dir = result/unet_nrdice |
| 80 | + |
| 81 | +# convert the label of prediction output |
| 82 | +label_source = [0, 1] |
| 83 | +label_target = [0, 255] |
0 commit comments