CNN for anatomy-guided PET reconstruction
Project description
pyapetnet
A convolutional neurol network (CNN) to mimick the behavior of anatomy-guided PET reconstruction in image space.
Authors
Georg Schramm, David Rigie
License
This project is licensed under the MIT License - see the LICENSE file for details.
Scientific Publication
Details about pyapetnet are published in Schramm et al., "Approximating anatomically-guided PET reconstruction in image space using a convolutional neural network" ,NeuroImage Vol 224 2021. If we you are using pyapetnet in scientific publications, we appreciate citation of this article.
Installation
We recommend to install pyapetnet
from conda-forge
via
conda -c conda-forge install pyapetnet
Alternatively, pyapetnet
can be also installed from pypi
via
pip install pyapetnet
Testing the installation
To test the installation activate your virtual environment and run
import pyapetnet
print(pyapetnet.__file__)
If the installation was successful, a number of command line scripts all starting with pyapetnet* to e.g. do predictions with the included trained models from nifti and dicom input images will be available.
Getting started - running your first prediction with pre-trained models
To run a prediction using one of included pre-trained networks and nifti images, run e.g.:
pyapetnet_predict_from_nifti osem.nii t1.nii S2_osem_b10_fdg_pe2i --show
Use the following to get information on the (optional) input arguments
pyapetnet_predict_from_nifti -h
To get a list of available pre-trained models run
pyapetnet_list_models
To make predictions from dicom images, use
pyapetnet_predict_from_dicom osem_dcm_dir t1_dcm_dir S2_osem_b10_fdg_pe2i --show
The source code of the prediction scripts can be found in the scripts
subfolder here.
Training your own model
If you want to train your own model (from scratch or using transfer learning) using your own data, have a look at our training script. All input parameters (e.g. data sets to use) have to be specified in a config json file (example here). The input data sets have to be in nifti format and should be aligned already.
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
File details
Details for the file pyapetnet-1.5.5.tar.gz
.
File metadata
- Download URL: pyapetnet-1.5.5.tar.gz
- Upload date:
- Size: 11.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.14.0 CPython/3.10.12 Linux/6.5.0-1017-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f10a0e64654382722be1c0090801e091cc66c0e60eae83be5dca7b7e2b41de9e |
|
MD5 | da3a7bd2bf18826deaa0de022998f282 |
|
BLAKE2b-256 | 4ce14099a88a6a7b120606e60f5c791499ab7f1caac61e055f9629033ffd4d62 |
File details
Details for the file pyapetnet-1.5.5-py3-none-any.whl
.
File metadata
- Download URL: pyapetnet-1.5.5-py3-none-any.whl
- Upload date:
- Size: 11.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.14.0 CPython/3.10.12 Linux/6.5.0-1017-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c679599665f406f60549800786d846c054b91f31c6003b8d0e63ff64a1dacd88 |
|
MD5 | 6e5f19201447380af271fbb52c611a01 |
|
BLAKE2b-256 | ae8d9e6e813f195f8a180e59481ca952f17b1be492bdc45da77dd06b0b3db246 |