Skip to main content

fastMONAI library

Project description

Overview

CI Docs PyPI

A low-code Python-based open source deep learning library built on top of fastai, MONAI, TorchIO, and Imagedata.

fastMONAI simplifies the use of state-of-the-art deep learning techniques in 3D medical image analysis for solving classification, regression, and segmentation tasks. fastMONAI provides the users with functionalities to step through data loading, preprocessing, training, and result interpretations.

Note: This documentation is also available as interactive notebooks.

Requirements

  • Python: 3.10, 3.11, or 3.12 (Python 3.11 recommended)
  • GPU: CUDA-compatible GPU recommended for training (CPU supported for inference)

Installation

Environment setup (recommended)

We recommend using a conda environment to avoid dependency conflicts:

conda create -n fastmonai python=3.11

conda activate fastmonai

Quick Install (PyPI)

pip install fastMONAI

Development install (GitHub)

If you want to install an editable version of fastMONAI for development:

git clone https://github.com/MMIV-ML/fastMONAI
cd fastMONAI

# Create development environment
conda create -n fastmonai-dev python=3.11
conda activate fastmonai-dev

# Install in development mode
pip install -e '.[dev]'

Getting started

The best way to get started using fastMONAI is to read our paper and dive into our beginner-friendly video tutorial. For a deeper understanding and hands-on experience, our comprehensive instructional notebooks will walk you through model training for various tasks like classification, regression, and segmentation. See the docs at https://fastmonai.no for more information.

Notebook 1-Click Notebook
11b_tutorial_classification.ipynb
shows how to construct a binary classification model based on MRI data.
Google Colab
11c_tutorial_regression.ipynb
shows how to construct a model to predict the age of a subject from MRI scans (“brain age”).
Google Colab
11d_tutorial_binary_segmentation.ipynb
shows how to do binary segmentation (extract the left atrium from monomodal cardiac MRI).
Google Colab
11e_tutorial_multiclass_segmentation.ipynb
shows how to perform segmentation from multimodal MRI (brain tumor segmentation).
Google Colab

How to contribute

We welcome contributions! See CONTRIBUTING.md

Citing fastMONAI

If you are using fastMONAI in your research, please use the following citation:

@article{KALIYUGARASAN2023100583,
title = {fastMONAI: A low-code deep learning library for medical image analysis},
journal = {Software Impacts},
pages = {100583},
year = {2023},
issn = {2665-9638},
doi = {https://doi.org/10.1016/j.simpa.2023.100583},
url = {https://www.sciencedirect.com/science/article/pii/S2665963823001203},
author = {Satheshkumar Kaliyugarasan and Alexander S. Lundervold},
keywords = {Deep learning, Medical imaging, Radiology},
abstract = {We introduce fastMONAI, an open-source Python-based deep learning library for 3D medical imaging. Drawing upon the strengths of fastai, MONAI, and TorchIO, fastMONAI simplifies the use of advanced techniques for tasks like classification, regression, and segmentation. The library's design addresses domain-specific demands while promoting best practices, facilitating efficient model development. It offers newcomers an easier entry into the field while keeping the option to make advanced, lower-level customizations if needed. This paper describes the library's design, impact, limitations, and plans for future work.}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastmonai-0.8.3.tar.gz (81.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastmonai-0.8.3-py3-none-any.whl (82.3 kB view details)

Uploaded Python 3

File details

Details for the file fastmonai-0.8.3.tar.gz.

File metadata

  • Download URL: fastmonai-0.8.3.tar.gz
  • Upload date:
  • Size: 81.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for fastmonai-0.8.3.tar.gz
Algorithm Hash digest
SHA256 b32630e0c1480bcd863391640b562b5846e4a67b192529a555b0ba157aa5b8cf
MD5 4e29fc9b9e912ae435b8b473bf741bf3
BLAKE2b-256 d7164bde0ff843103fea4dcda939d1a09373a7e9176e8d83c31848e34fcc69de

See more details on using hashes here.

File details

Details for the file fastmonai-0.8.3-py3-none-any.whl.

File metadata

  • Download URL: fastmonai-0.8.3-py3-none-any.whl
  • Upload date:
  • Size: 82.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for fastmonai-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bf7eb7bc66d37d373d5fefdb1e077e660ff8f2968ee475bedaaf4fdb88c9770b
MD5 1f8c37150de7b78d4f5ab43e50c79950
BLAKE2b-256 45de356d028a06fd9afd4e8df73c3094153518dd7def484645dd2700dd50c74d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page