Skip to main content

pymia

Documentation status

pymia is an open-source Python (py) package for deep learning-based medical image analysis (mia). The package addresses two main parts of deep learning pipelines: data handling and evaluation. The package itself is independent of the deep learning framework used but can easily be integrated into TensorFlow and PyTorch pipelines. Therefore, pymia is highly flexible, allows for fast prototyping, and reduces the burden of implementing data handling and evaluation.

Main Features

The main features of pymia are data handling (pymia.data package) and evaluation (pymia.evaluation package). The data package is used to extract data (images, labels, demography, etc.) from a dataset in the desired format (2-D, 3-D; full- or patch-wise) for feeding to a neural network. The output of the neural network is then assembled back to the original format before extraction, if necessary. The evaluation package provides both evaluation routines as well as metrics to assess predictions against references. Evaluation can be used both for stand-alone result calculation and reporting, and for monitoring of the training progress. Further, pymia provides some basic image filtering and manipulation functionality (pymia.filtering package). We recommend following our examples.

The following figure depicts pymia in the deep learning environment. The data package allows to create a dataset from raw data. Extraction of the data from this dataset is possible in nearly every desired format (2-D, 3-D; full- or patch-wise) for feeding to a neural network. The prediction of the neural network can, if necessary, be assembled back to the format before extraction. The evaluation package allows to evaluate predictions against references using a vast amount of metrics. It can be used stand-alone (solid) or for performance monitoring during training (dashed).

The pymia package in the deep learning environment

Getting Started

If you are new to pymia, here are a few guides to get you up to speed right away:

Citation

If you use pymia for your research, please acknowledge it accordingly by citing our paper:

Jungo, A., Scheidegger, O., Reyes, M., & Balsiger, F. (2021). pymia: A Python package for data handling and evaluation in deep learning-based medical image analysis. Computer Methods and Programs in Biomedicine, 198, 105796.

BibTeX entry:

@article{Jungo2021a,
author = {Jungo, Alain and Scheidegger, Olivier and Reyes, Mauricio and Balsiger, Fabian},
doi = {10.1016/j.cmpb.2020.105796},
issn = {01692607},
journal = {Computer Methods and Programs in Biomedicine},
pages = {105796},
title = {{pymia: A Python package for data handling and evaluation in deep learning-based medical image analysis}},
volume = {198},
year = {2021},
}

Release files for pymia 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymia 0.3.4
File Size Uploaded
pymia-0.3.4.tar.gz 59.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pymia 0.3.4
File Interpreter ABI Platform
pymia-0.3.4-py3-none-any.whl Python 3 none any Details

Total release size: 133.2 kB

Release files / pymia-0.3.4.tar.gz

Download URL pymia-0.3.4.tar.gz
Size 59.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d795c8fcf49011a054d18376103e2660bab1be8a92029c923d55e8281de32b10
BLAKE2b-256 checksum
How to use checksums
59b0237c3cb1b9991ef2ee0c89380e19006373469ad006c65ffae3db090382b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.16

Release files / pymia-0.3.4-py3-none-any.whl

Download URL pymia-0.3.4-py3-none-any.whl
Size 73.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
106aa03ff75c24bf419fb7fd5f634cb70bed034025ec1cc48570cf309a9aeeb5
BLAKE2b-256 checksum
How to use checksums
43eb41526650378c07498572018c92cf384b00e0136aff4cfe4ea4d28d1693bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.3.4 This release

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page