Skip to content

Commit 1fcdf26

Browse files
authored
Merge pull request #9 from HiLab-git/dev_cls
Dev cls
2 parents 4046bea + e212208 commit 1fcdf26

File tree

100 files changed

+1978
-4566
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+1978
-4566
lines changed

README.md

+27-21
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,57 @@
11
# PyMIC: A Pytorch-Based Toolkit for Medical Image Computing
22

3-
This repository proivdes a library and some examples of using pytorch for medical image computing. The toolkit is under development. Currently it supports 2D and 3D image segmentation. It was originally developped for COVID-19 pneumonia lesion segmentation from CT images. If you use this toolkit, please cite the following paper:
3+
PyMIC is a pytorch-based toolkit for medical image computing with deep learning. Despite that pytorch is a fantastic platform for deep learning, using it for medical image computing is not straightforward as medical images are often with higher dimension, multiple modalities and low contrast. The toolkit is developed to facilitate medical image computing researchers so that training and testing deep learning models become easier. It is very friendly to researchers who are new to this area. Even without writing any code, you can use PyMIC commands to train and test a model by simply editing configure files.
4+
5+
Currently PyMIC supports 2D/3D medical image classification and segmentation, and it is still under development. It was originally developed for COVID-19 pneumonia lesion segmentation from CT images. If you use this toolkit, please cite the following paper:
6+
47

58
* G. Wang, X. Liu, C. Li, Z. Xu, J. Ruan, H. Zhu, T. Meng, K. Li, N. Huang, S. Zhang.
69
[A Noise-robust Framework for Automatic Segmentation of COVID-19 Pneumonia Lesions from CT Images.][tmi2020] IEEE Transactions on Medical Imaging. 39(8):2653-2663, 2020. DOI: [10.1109/TMI.2020.3000314][tmi2020]
710

811
[tmi2020]:https://ieeexplore.ieee.org/document/9109297
912

10-
# Requirement
11-
* [Pytorch][torch_link] version >=1.0.1
12-
* [TensorboardX][tbx_link] to visualize training performance
13-
* Some common python packages such as Numpy, Pandas, SimpleITK
14-
15-
[torch_link]:https://pytorch.org/
16-
[tbx_link]:https://github.com/lanpa/tensorboardX
1713

1814
# Advantages
19-
This package provides some basic modules for medical image computing that can be share by different applications. We currently provide the following functions:
15+
PyMIC provides some basic modules for medical image computing that can be share by different applications. We currently provide the following functions:
2016
* Easy-to-use I/O interface to read and write different 2D and 3D images.
21-
* Re-userable training and testing pipeline that can be transfered to different tasks.
17+
* Re-useable training and testing pipeline that can be transferred to different tasks.
2218
* Various data pre-processing methods before sending a tensor into a network.
23-
* Implementation of loss functions (for image segmentation).
19+
* Implementation of loss functions, especially for image segmentation.
2420
* Implementation of evaluation metrics to get quantitative evaluation of your methods (for segmentation).
2521

2622
# Usage
27-
Run the following command to install PyMIC:
23+
## Requirement
24+
* [Pytorch][torch_link] version >=1.0.1
25+
* [TensorboardX][tbx_link] to visualize training performance
26+
* Some common python packages such as Numpy, Pandas, SimpleITK
27+
28+
[torch_link]:https://pytorch.org/
29+
[tbx_link]:https://github.com/lanpa/tensorboardX
30+
31+
## Installation
32+
Run the following command to install the current released version of PyMIC:
2833

2934
```bash
3035
pip install PYMIC
3136
```
3237

33-
Go to `examples` to see some examples for using PyMIC. For beginners, you only need to simply change the configuration files to select different datasets, networks and training methods for running the code (example 1 - 3). For advanced users, you can develop your own modules based on this package (example 4). You can find the following examples:
38+
Alternatively, you can download the source code and add the path of pymic to the `PYTHONPATH` environment variable.
3439

35-
1, `examples\JSRT`: use a predefined 2D U-Net for heart segmentation from X-ray images.
40+
## Examples
41+
[PyMIC_examples][examples] provides some examples of starting to use PyMIC. For beginners, you only need to simply change the configuration files to select different datasets, networks and training methods for running the code. For advanced users, you can develop your own modules based on this package. You can find both types of examples
3642

37-
2, `examples\fetal_hc`: use a predefined 2D U-Net for fetal brain segmentation from ultrasound images.
38-
39-
3, `examples\prostate`: use a predefined 3D U-Net for prostate segmentation from 3D MRI.
40-
41-
4, `examples\JSRT2`: define your custermized network and loss function for heart segmentation from X-ray images.
43+
[examples]: https://github.com/HiLab-git/PyMIC_examples
4244

4345
# Projects based on PyMIC
4446
Using PyMIC, it becomes easy to develop deep learning models for different projects, such as the following:
4547

46-
1, [COPLE-Net][coplenet] COVID-19 Pneumonia Segmentation from CT images.
48+
1, [COPLE-Net][coplenet] (TMI 2020), COVID-19 Pneumonia Segmentation from CT images.
4749

48-
2, [Head-Neck-GTV][hn_gtv] Nasopharyngeal Carcinoma (NPC) GTV segmentation from Head and Neck CT images.
50+
2, [Head-Neck-GTV][hn_gtv] (NeuroComputing 2020) Nasopharyngeal Carcinoma (NPC) GTV segmentation from Head and Neck CT images.
51+
52+
3, [UGIR][ugir] (MICCAI 2020) Uncertainty-guided interactive refinement for medical image segmentation.
4953

5054
[coplenet]:https://github.com/HiLab-git/COPLE-Net
5155
[hn_gtv]: https://github.com/HiLab-git/Head-Neck-GTV
56+
[ugir]: https://github.com/HiLab-git/UGIR
57+

examples/JSRT/README.md

-48
This file was deleted.

examples/JSRT/config/evaluation.cfg

-17
This file was deleted.

examples/JSRT/config/jsrt_all.csv

-248
This file was deleted.

0 commit comments

Comments
 (0)