Helpful utilities for deep learning in medical image analysis/medical image computing
Project description
Medical Deep Learning Utilities
This repository contains utilities for training and evaluating deep learning models in medical image analysis that are not specific to certain tasks.
So far it consists of 2 major parts:
An abstract Dataset API built on top of torch.utils.data.Dataset
and torchio.data.Subject
as well as general transforms for this kind of data.
To use the dataset classes, you basically only need to implement the parse_subjects
method to return a list of samples and everything else will work automatically.
You will automatically get image statistics such as median spacing or median shape. For label statistics, you either need to subclass the AbstractDiscreteLabelDataset
or implement the get_single_label_stats
and aggregate_label_stats
methods.
All transforms work on torchio.data.Subjects
and can be passed to the datasets as optional parameters. You can also pass "default"
as a parameter to use the default transforms.
Pull requests for other common utilities are highly welcomed.
Installation
This project can be installed either from PyPI or by cloning the repository from GitHub.
For an install of published packages, use the command
pip install medical-dl-utils
To install from the (cloned) repository, use the command
pip install PATH/TO/medical-dl-utils
You can also add -e
to the command to make an editable install in case you want to modify the code.
You can also install the package directly from GitHub by running
pip install git+https://github.com/justusschock/medical-dl-utils.git
Docker Images
We provide a docker image for easy usage of the package and as a base image for other projects.
The file for this image can be found at dockers/Dockerfile
. We provide both, a CPU-only and a CUDA-enabled image based on the NVIDIA NGC PyTorch image.
These images can be found on DockerHub.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for medical_dl_utils-0.1.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 894c5bcf0fd78645be82c1e9f50bd858abcaa0e9ce140f744e1f77e540b67ec9 |
|
MD5 | 58f560d73ac4047f76339f3b36d78aad |
|
BLAKE2b-256 | f11185efb55e38d5a7fdd849a88e0f39dce11df86cd4da15afe4c0cb9119b4c4 |