by Zengming Shen,Bogdan Georgescu, Thomas S. Huang.
This repository is for the source code of C-DenseUNet: 2D-3D Coupled Densely Connected UNet for Liver and Tumor Segmentation from CT Volumes.
-
Data preprocessing: Download dataset from: Liver Tumor Segmentation Challenge.
Then put 131 training data with segmentation masks under "data/TrainingData/" and 70 test data under "data/TestData/".
Run:python preprocessing.py
-
Test our model: Download liver mask from LiverMask and put them in the folder: 'livermask'.
Download model from Model and put them in the folder: 'model'. run:python test.py
-
Train 2D DenseUnet: First, you need to download the pretrained model from ImageNet Pretrained, extract it and put it in the folder 'model'. Then run:
sh bash_train.sh
-
Train C-DenseUnet: Load your trained model and run
CUDA_VISIBLE_DEVICES='0' python train_hybrid.py -arch 3dpart
-
Train C-DenseUnet in end-to-end way:
CUDA_VISIBLE_DEVICES='0' python train_hybrid.py -arch end2end
Please contact '[email protected]'