SkillAgentSearch skills...

ANTsPyNet

Pre-trained models and utilities for deep learning on medical images in Python (Keras/TensorFlow)

Install / Use

/learn @ANTsX/ANTsPyNet
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

PyPI - Downloads Contributor Covenant Docker Pulls PubMed

Advanced Normalization Tools for Deep Learning in Python (ANTsPyNet)

A collection of deep learning architectures and applications ported to the Python language and tools for basic medical image processing. Based on keras and tensorflow with cross-compatibility with our R analog ANTsRNet. ANTsPyNet provides three high-level features:

  • A large collection of common deep learning architectures for medical imaging that can be initialized
  • Various pre-trained deep learning models to perform key medical imaging tasks
  • Utility functions to improve training and evaluating of deep learning models on medical images
<p align="middle"> <img src="docs/figures/coreANTsXNetTools.png" width="600" /> </p>

Overview

<details> <summary>Installation</summary>

Binaries

The easiest way to install ANTsPyNet is via pip.

python -m pip install antspynet

From Source

Alternatively, you can download and install from source.

git clone https://github.com/ANTsX/ANTsPyNet
cd ANTsPyNet
python -m pip install .
</details> <!-- ## Quickstart The core functionality that ANTsPyNet provides is the ability to initialize a Deep Learning model based on our large collection of model architectures specifically tailored for medical images. You can then train these initialized models using your standard `keras` or `tensorflow` workflows. An example of initializing a deep learning model based on the is provided here: ```python from antspynet.architectures import create_autoencoder_model model = create_autoencoder_model((784, 500, 500, 2000, 10)) model.summary() ``` We also provide a collection of pre-trained models that can perform key medical imaging processing tasks such as brain extraction, segmentation, cortical thickness, and more. An example of reading a brain image using `ANTsPy` and then performing brain extraction using our pre-trained model in `ANTsPyNet` is presented here: ```python import ants import antspynet t1 = ants.image_read(antspynet.get_antsxnet_data('mprage_hippmapp3r')) seg = antspynet.brain_extraction(t1, modality="t1", verbose=True) ants.plot(t1, overlay=seg, overlay_alpha=0.5) ``` --> <details> <summary>Architectures</summary>

Image voxelwise segmentation/regression

Image classification/regression

Object detection

Image super-resolution

Registration and transforms

Generative adverserial networks

Clustering

</details> <details> <summary>Applications</summary>
View on GitHub
GitHub Stars251
CategoryEducation
Updated10d ago
Forks33

Languages

Python

Security Score

100/100

Audited on Mar 11, 2026

No findings