-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbash.sh
33 lines (26 loc) · 1.64 KB
/
bash.sh
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
### 1, Preprocess luna dataset for pretraining, and split the data into training and validation
# python luna_preprocess.py
# python get_luna_csv.py
### 2, Split the LCTSC2017 dataset into training, validaiton and testing
# python write_csv.py
### 3, For volume fusion, the following three commens are used to create the validation images,
# do pretraining, and applying the pretrained model to the downstream segmentation task, respectively.
# pymic_preprocess config/luna_data/preprocess_volumefusion.cfg
# pymic_train config/luna_pretrain/unet3d_volumefusion.cfg
# pymic_train config/lctsc_train/unet3d_volumefusion.cfg
### 4, Train from scratch
# pymic_train config/lctsc_train/unet3d_scratch.cfg
### 5, Inference with testing images and do the evaluation.
# pymic_test config/lctsc_train/unet3d_volumefusion.cfg
# pymic_test config/lctsc_train/unet3d_scratch.cfg
# pymic_eval_seg -cfg config/evaluation.cfg
### 6, Pretraining with Model Genesis. The following three commens are used to create the validation images,
# do pretraining, and applying the pretrained model to the downstream segmentation task, respectively.
# pymic_preprocess config/luna_data/preprocess_genesis.cfg
# pymic_train config/luna_pretrain/unet3d_genesis.cfg
# pymic_train config/lctsc_train/unet3d_genesis.cfg
### 7, Pretraining with Patch Swap. The following three commens are used to create the validation images,
# do pretraining, and applying the pretrained model to the downstream segmentation task, respectively.
# pymic_preprocess config/luna_data/preprocess_patchswap.cfg
# pymic_train config/luna_pretrain/unet3d_patchswap.cfg
# pymic_train config/lctsc_train/unet3d_patchswap.cfg