This repository provides source code and pretrained model of COPLE-Net for COVID-19 pneumonia lesion segmentation proposed by G. Wang et al.[1]. If you use this code or the pretrained model, please cite the following paper:
A segmentation example. (a) one slice of a CT volume. (b) segmentation by COPLE-Net (green) compared with the ground truth (orange). (c) 3D visualization.
The structure of COPLE-Net. It employes a concatenation of max-pooling and average pooling to reduce information loss during down-sampling, and uses bridge layers to alleviate the semantic gap between features from the encoder and the decoder. ASPP block is used at the bottleneck to better deal with lesions at multiple scales.
Based on this project, we have also released a dataset named as UESTC-COVID-19 Dataset
, which consists of 120 3D CT scans, where 70 volumes were annotated by non-experts and 50 volumes were annotated by experts. Click here to request for access.
pip install PYMIC==0.2.3
.COPLE-Net has also been implemented in MONAI, a PyTorch-based, open-source framework for deep learning in healthcare imaging. Thanks Dr. Wenqi Li for the re-implementation and you can find it here.
coplenet_data
.python coplenet_run.py test config/config.cfg
. The results will be saved in coplenet_data/result
.config/config.cfg
and edit root_dir
, test_csv
and output_dir
according to the path of your images. Then return to step 2 to obtain the segmentation results.Training of COPLE-Net was implemented with PyMIC.
Just follow these examples for using PyMIC for network training and testing.
You may need to custormize the configure files to use different network structures, preprocessing methods and loss functions.