Skip to content

Commit a114a79

Browse files
authored
Merge pull request #29 from HiLab-git/dev
Dev
2 parents f2dad93 + 04211f4 commit a114a79

File tree

119 files changed

+4399
-1454
lines changed

Some content is hidden

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

119 files changed

+4399
-1454
lines changed

README.md

+15-4
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,24 @@
22

33
PyMIC is a pytorch-based toolkit for medical image computing with annotation-efficient 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 high dimension and large volume, multiple modalities and difficulies in annotating. This 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 configuration files. PyMIC is developed to support learning with imperfect labels, including semi-supervised and weakly supervised learning, and learning with noisy annotations.
44

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:
5+
Currently PyMIC supports 2D/3D medical image classification and segmentation, and it is still under development. If you use this toolkit, please cite the following paper:
66

7-
* G. Wang, X. Liu, C. Li, Z. Xu, J. Ruan, H. Zhu, T. Meng, K. Li, N. Huang, S. Zhang.
8-
[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]
7+
* G. Wang, X. Luo, R. Gu, S. Yang, Y. Qu, S. Zhai, Q. Zhao, K. Li, S. Zhang. (2022).
8+
[PyMIC: A deep learning toolkit for annotation-efficient medical image segmentation.][arxiv2022] arXiv, 2208.09350.
99

10-
[tmi2020]:https://ieeexplore.ieee.org/document/9109297
10+
[arxiv2022]:http://arxiv.org/abs/2208.09350
1111

12+
BibTeX entry:
13+
14+
@article{Wang2022pymic,
15+
author = {Guotai Wang and Xiangde Luo and Ran Gu and Shuojue Yang and Yijie Qu and Shuwei Zhai and Qianfei Zhao and Kang Li and Shaoting Zhang},
16+
title = {{PyMIC: A deep learning toolkit for annotation-efficient medical image segmentation}},
17+
year = {2022},
18+
url = {http://arxiv.org/abs/2208.09350},
19+
journal = {arXiv},
20+
volume = {2208.09350},
21+
pages = {1-10},
22+
}
1223

1324
# Features
1425
PyMIC provides flixible modules for medical image computing tasks including classification and segmentation. It currently provides the following functions:

docs/source/api.rst

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
API
22
===
33

4-
.. autosummary::
5-
:toctree: generated
4+
.. toctree::
5+
:maxdepth: 4
66

7-
lumache
7+
pymic.io
8+
pymic.layer
9+
pymic.loss
10+
pymic.net
11+
pymic.net_run
12+
pymic.net_run_nll
13+
pymic.net_run_ssl
14+
pymic.net_run_wsl
15+
pymic.transform
16+
pymic.util

docs/source/conf.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Configuration file for the Sphinx documentation builder.
22

33
# -- Project information
4+
import os
5+
import sys
6+
sys.path.insert(0, os.path.abspath('./../..'))
47

58
project = 'PyMIC'
69
copyright = '2021, HiLab'

docs/source/index.rst

+36-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,48 @@
11
Welcome to PyMIC's documentation!
22
===================================
33

4-
PyMIC is a pytorch-based toolkit for medical image computing with annotation-efficient deep learning.
5-
PyMIC is developed to support learning with imperfect labels, including semi-supervised and weakly supervised learning, and learning with noisy annotations.
4+
PyMIC is a pytorch-based toolkit for medical image computing with annotation-efficient
5+
deep learning. PyMIC is developed to support learning with imperfect labels, including
6+
semi-supervised and weakly supervised learning, and learning with noisy annotations.
67

7-
Check out the :doc:`usage` section for further information, including
8-
how to :ref:`installation` the project.
8+
Check out the :doc:`installation` section for install PyMIC, and go to the :doc:`usage`
9+
section for understanding modules for the segmentation pipeline designed in PyMIC.
10+
Please follow `PyMIC_examples <https://github.com/HiLab-git/PyMIC_examples/>`_
11+
to quickly start with using PyMIC.
912

1013
.. note::
1114

1215
This project is under active development. It will be updated later.
1316

14-
Contents
15-
--------
1617

1718
.. toctree::
19+
:maxdepth: 2
20+
:caption: Getting Started
21+
22+
installation
23+
usage
24+
api
25+
26+
Citation
27+
--------
28+
29+
If you use PyMIC for your research, please acknowledge it accordingly by citing our paper:
30+
31+
`G. Wang, X. Luo, R. Gu, S. Yang, Y. Qu, S. Zhai, Q. Zhao, K. Li, S. Zhang. (2022).
32+
PyMIC: A deep learning toolkit for annotation-efficient medical image segmentation.
33+
arXiv, 2208.09350. <http://arxiv.org/abs/2208.09350>`_
34+
35+
36+
BibTeX entry:
37+
38+
.. code-block:: none
1839
19-
usage
20-
api
40+
@article{Wang2022pymic,
41+
author = {Guotai Wang and Xiangde Luo and Ran Gu and Shuojue Yang and Yijie Qu and Shuwei Zhai and Qianfei Zhao and Kang Li and Shaoting Zhang},
42+
title = {{PyMIC: A deep learning toolkit for annotation-efficient medical image segmentation}},
43+
year = {2022},
44+
url = {http://arxiv.org/abs/2208.09350},
45+
journal = {arXiv},
46+
volume = {2208.09350},
47+
pages = {1-10},
48+
}

docs/source/installation.rst

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Installation
2+
============
3+
4+
Install PyMIC using pip (e.g., within a `Python virtual environment <https://www.geeksforgeeks.org/python-virtual-environment/>`_):
5+
6+
.. code-block:: bash
7+
8+
pip install PYMIC
9+
10+
11+
Alternatively, you can download or clone the code from `GitHub <https://github.com/HiLab-git/PyMIC>`_ and install PyMIC by
12+
13+
.. code-block:: bash
14+
15+
git clone https://github.com/HiLab-git/PyMIC
16+
cd PyMIC
17+
python setup.py install
18+
19+
20+
PyMIC requires Python 3.6 (or higher) and depends on the following packages:
21+
22+
- `pandas <https://pandas.pydata.org/>`_
23+
- `h5py <https://www.h5py.org/>`_
24+
- `NumPy <https://numpy.org/>`_
25+
- `scikit-image <https://scikit-image.org/>`_
26+
- `SciPy <https://www.scipy.org/>`_
27+
- `SimpleITK <https://simpleitk.org/>`_

docs/source/modules.rst

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pymic
2+
=====
3+
4+
.. toctree::
5+
:maxdepth: 4
6+
7+
pymic

docs/source/pymic.io.rst

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
pymic.io package
2+
================
3+
4+
Submodules
5+
----------
6+
7+
pymic.io.h5\_dataset module
8+
---------------------------
9+
10+
.. automodule:: pymic.io.h5_dataset
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
pymic.io.image\_read\_write module
16+
----------------------------------
17+
18+
.. automodule:: pymic.io.image_read_write
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
23+
pymic.io.nifty\_dataset module
24+
------------------------------
25+
26+
.. automodule:: pymic.io.nifty_dataset
27+
:members:
28+
:undoc-members:
29+
:show-inheritance:
30+
31+
Module contents
32+
---------------
33+
34+
.. automodule:: pymic.io
35+
:members:
36+
:undoc-members:
37+
:show-inheritance:

docs/source/pymic.layer.rst

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
pymic.layer package
2+
===================
3+
4+
Submodules
5+
----------
6+
7+
pymic.layer.activation module
8+
-----------------------------
9+
10+
.. automodule:: pymic.layer.activation
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
pymic.layer.convolution module
16+
------------------------------
17+
18+
.. automodule:: pymic.layer.convolution
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
23+
pymic.layer.deconvolution module
24+
--------------------------------
25+
26+
.. automodule:: pymic.layer.deconvolution
27+
:members:
28+
:undoc-members:
29+
:show-inheritance:
30+
31+
pymic.layer.space2channel module
32+
--------------------------------
33+
34+
.. automodule:: pymic.layer.space2channel
35+
:members:
36+
:undoc-members:
37+
:show-inheritance:
38+
39+
Module contents
40+
---------------
41+
42+
.. automodule:: pymic.layer
43+
:members:
44+
:undoc-members:
45+
:show-inheritance:

docs/source/pymic.loss.cls.rst

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
pymic.loss.cls package
2+
======================
3+
4+
Submodules
5+
----------
6+
7+
pymic.loss.cls.basic module
8+
------------------------
9+
10+
.. automodule:: pymic.loss.cls.basic
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
pymic.loss.cls.util module
16+
--------------------------
17+
18+
.. automodule:: pymic.loss.cls.util
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
23+
Module contents
24+
---------------
25+
26+
.. automodule:: pymic.loss.cls
27+
:members:
28+
:undoc-members:
29+
:show-inheritance:

docs/source/pymic.loss.rst

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
pymic.loss package
2+
==================
3+
4+
Subpackages
5+
-----------
6+
7+
.. toctree::
8+
:maxdepth: 4
9+
10+
pymic.loss.cls
11+
pymic.loss.seg
12+
13+
Submodules
14+
----------
15+
16+
pymic.loss.loss\_dict\_cls module
17+
---------------------------------
18+
19+
.. automodule:: pymic.loss.loss_dict_cls
20+
:members:
21+
:undoc-members:
22+
:show-inheritance:
23+
24+
pymic.loss.loss\_dict\_seg module
25+
---------------------------------
26+
27+
.. automodule:: pymic.loss.loss_dict_seg
28+
:members:
29+
:undoc-members:
30+
:show-inheritance:
31+
32+
Module contents
33+
---------------
34+
35+
.. automodule:: pymic.loss
36+
:members:
37+
:undoc-members:
38+
:show-inheritance:

0 commit comments

Comments
 (0)