This repository is an unoffical PyTorch implementation of Medical segmentation in 3D and 2D.
Read Chinese Introduction:Here!
if your source dataset is :
source_dataset ├── source_1.mhd ├── source_1.zraw ├── source_2.mhd ├── source_2.zraw ├── source_3.mhd ├── source_3.zraw ├── source_4.mhd ├── source_4.zraw └── ...
and your label dataset is :
label_dataset ├── label_1.mhd ├── label_1.zraw ├── label_2.mhd ├── label_2.zraw ├── label_3.mhd ├── label_3.zraw ├── label_4.mhd ├── label_4.zraw └── ...
then your should modify fold_arch as *.mhd, sourcetraindir as source_dataset and labeltraindir as label_dataset in hparam.py
if your source dataset is :
source_dataset ├── 1 ├── source_1.mhd ├── source_1.zraw ├── 2 ├── source_2.mhd ├── source_2.zraw ├── 3 ├── source_3.mhd ├── source_3.zraw ├── 4 ├── source_4.mhd ├── source_4.zraw └── ...
and your label dataset is :
label_dataset ├── 1 ├── label_1.mhd ├── label_1.zraw ├── 2 ├── label_2.mhd ├── label_2.zraw ├── 3 ├── label_3.mhd ├── label_3.zraw ├── 4 ├── label_4.mhd ├── label_4.zraw └── ...
then your should modify fold_arch as */*.mhd, sourcetraindir as source_dataset and labeltraindir as label_dataset in hparam.py
set hparam.train_or_test to 'train' python main.py
set hparam.train_or_test to 'train' python main.py -k True
set hparam.train_or_test to 'test' python main.py
This project is not perfect and there are still many problems. If you are using this project and would like to give the author some feedbacks, you can send Kangneng Zhou an email, his wechat number is: ellisgege666
This repository is an unoffical PyTorch implementation of Medical segmentation in 3D and 2D and highly based on MedicalZooPytorch and torchio.Thank you for the above repo. Thank you to Cheng Chen, Daiheng Gao, Jie Zhang, Xing Tao, Weili Jiang and Shanshan Li for all the help I received.