A collection of TensorFlow add-ons for computational MRI.
Project description
.. image:: https://raw.githubusercontent.com/mrphys/tensorflow-mri/v0.6.0/tools/assets/tfmr_logo.svg?sanitize=true
:align: center
:scale: 100 %
:alt: TFMRI logo
|
|pypi| |build| |docs| |doi|
.. |pypi| image:: https://badge.fury.io/py/tensorflow-mri.svg
:target: https://badge.fury.io/py/tensorflow-mri
.. |build| image:: https://github.com/mrphys/tensorflow-mri/actions/workflows/build-package.yml/badge.svg
:target: https://github.com/mrphys/tensorflow-mri/actions/workflows/build-package.yml
.. |docs| image:: https://img.shields.io/badge/api-reference-blue.svg
:target: https://mrphys.github.io/tensorflow-mri/
.. |doi| image:: https://zenodo.org/badge/388094708.svg
:target: https://zenodo.org/badge/latestdoi/388094708
.. start-intro
TensorFlow MRI is a library of TensorFlow operators for computational MRI which
includes:
* A fast, native non-uniform fast Fourier transform (NUFFT) operator (see
also `TensorFlow NUFFT <https://github.com/mrphys/tensorflow-nufft>`_).
* A unified gateway for MR image reconstruction, which supports parallel
imaging, compressed sensing, machine learning and partial Fourier methods.
* Common linear and nonlinear operators, such as Fourier operators and
regularizers, to aid in the development of novel image reconstruction
techniques.
* Multicoil imaging operators, such as coil combination, coil compression and
estimation of coil sensitivity maps.
* Calculation of non-Cartesian k-space trajectories and sampling density
estimation.
* A collection of Keras objects including models, layers, metrics, loss
functions and callbacks for rapid development of neural networks.
* Many other differentiable operators for common tasks such as array
manipulation and image/signal processing.
The library has a Python interface and is mostly written in Python. However,
computations are efficiently performed by the TensorFlow backend (implemented in
C++/CUDA), which brings together the ease of use and fast prototyping of Python
with the speed and efficiency of optimized lower-level implementations.
Being an extension of TensorFlow, TensorFlow MRI integrates seamlessly in ML
applications. No additional interfacing is needed to include a SENSE operator
within a neural network, or to use a trained prior as part of an iterative
reconstruction. Therefore, the gap between ML and non-ML components of image
processing pipelines is eliminated.
Whether an application involves ML or not, TensorFlow MRI operators can take
full advantage of the TensorFlow framework, with capabilities including
automatic differentiation, multi-device support (CPUs and GPUs), automatic
device placement and copying of tensor data, and conversion to fast,
serializable graphs.
.. end-intro
Installation
------------
.. start-install
You can install TensorFlow MRI with ``pip``:
.. code-block:: console
$ pip install tensorflow-mri
Note that only Linux is currently supported.
TensorFlow Compatibility
^^^^^^^^^^^^^^^^^^^^^^^^
Each TensorFlow MRI release is compiled against a specific version of
TensorFlow. To ensure compatibility, it is recommended to install matching
versions of TensorFlow and TensorFlow MRI according to the table below.
====================== ======================== ============
TensorFlow MRI Version TensorFlow Compatibility Release Date
====================== ======================== ============
v0.12.0 v2.8.x Mar 14, 2022
v0.11.0 v2.8.x Mar 10, 2022
v0.10.0 v2.8.x Mar 3, 2022
v0.9.0 v2.7.x Dec 3, 2021
v0.8.0 v2.7.x Nov 11, 2021
v0.7.0 v2.6.x Nov 3, 2021
v0.6.2 v2.6.x Oct 13, 2021
v0.6.1 v2.6.x Sep 30, 2021
v0.6.0 v2.6.x Sep 28, 2021
v0.5.0 v2.6.x Aug 29, 2021
v0.4.0 v2.6.x Aug 18, 2021
====================== ======================== ============
.. end-install
Documentation
-------------
Visit the `docs <https://mrphys.github.io/tensorflow-mri/>`_ for the API
reference and examples of usage.
Contributions
-------------
If you use this package and something does not work as you expected, please
`file an issue <https://github.com/mrphys/tensorflow-mri/issues/new>`_
describing your problem. We will do our best to help.
Contributions are very welcome. Please create a pull request if you would like
to make a contribution.
Citation
--------
If you find this software useful in your work, please
`cite us <https://doi.org/10.5281/zenodo.5151590>`_.
FAQ
---
.. start-faq
**When trying to install TensorFlow MRI, I get an error about OpenEXR which
includes:
``OpenEXR.cpp:36:10: fatal error: ImathBox.h: No such file or directory``. What
do I do?**
OpenEXR is needed by TensorFlow Graphics, which is a dependency of TensorFlow
MRI. This issue can be fixed by installing the OpenEXR library. On
Debian/Ubuntu:
.. code-block:: console
$ apt install libopenexr-dev
.. end-faq
:align: center
:scale: 100 %
:alt: TFMRI logo
|
|pypi| |build| |docs| |doi|
.. |pypi| image:: https://badge.fury.io/py/tensorflow-mri.svg
:target: https://badge.fury.io/py/tensorflow-mri
.. |build| image:: https://github.com/mrphys/tensorflow-mri/actions/workflows/build-package.yml/badge.svg
:target: https://github.com/mrphys/tensorflow-mri/actions/workflows/build-package.yml
.. |docs| image:: https://img.shields.io/badge/api-reference-blue.svg
:target: https://mrphys.github.io/tensorflow-mri/
.. |doi| image:: https://zenodo.org/badge/388094708.svg
:target: https://zenodo.org/badge/latestdoi/388094708
.. start-intro
TensorFlow MRI is a library of TensorFlow operators for computational MRI which
includes:
* A fast, native non-uniform fast Fourier transform (NUFFT) operator (see
also `TensorFlow NUFFT <https://github.com/mrphys/tensorflow-nufft>`_).
* A unified gateway for MR image reconstruction, which supports parallel
imaging, compressed sensing, machine learning and partial Fourier methods.
* Common linear and nonlinear operators, such as Fourier operators and
regularizers, to aid in the development of novel image reconstruction
techniques.
* Multicoil imaging operators, such as coil combination, coil compression and
estimation of coil sensitivity maps.
* Calculation of non-Cartesian k-space trajectories and sampling density
estimation.
* A collection of Keras objects including models, layers, metrics, loss
functions and callbacks for rapid development of neural networks.
* Many other differentiable operators for common tasks such as array
manipulation and image/signal processing.
The library has a Python interface and is mostly written in Python. However,
computations are efficiently performed by the TensorFlow backend (implemented in
C++/CUDA), which brings together the ease of use and fast prototyping of Python
with the speed and efficiency of optimized lower-level implementations.
Being an extension of TensorFlow, TensorFlow MRI integrates seamlessly in ML
applications. No additional interfacing is needed to include a SENSE operator
within a neural network, or to use a trained prior as part of an iterative
reconstruction. Therefore, the gap between ML and non-ML components of image
processing pipelines is eliminated.
Whether an application involves ML or not, TensorFlow MRI operators can take
full advantage of the TensorFlow framework, with capabilities including
automatic differentiation, multi-device support (CPUs and GPUs), automatic
device placement and copying of tensor data, and conversion to fast,
serializable graphs.
.. end-intro
Installation
------------
.. start-install
You can install TensorFlow MRI with ``pip``:
.. code-block:: console
$ pip install tensorflow-mri
Note that only Linux is currently supported.
TensorFlow Compatibility
^^^^^^^^^^^^^^^^^^^^^^^^
Each TensorFlow MRI release is compiled against a specific version of
TensorFlow. To ensure compatibility, it is recommended to install matching
versions of TensorFlow and TensorFlow MRI according to the table below.
====================== ======================== ============
TensorFlow MRI Version TensorFlow Compatibility Release Date
====================== ======================== ============
v0.12.0 v2.8.x Mar 14, 2022
v0.11.0 v2.8.x Mar 10, 2022
v0.10.0 v2.8.x Mar 3, 2022
v0.9.0 v2.7.x Dec 3, 2021
v0.8.0 v2.7.x Nov 11, 2021
v0.7.0 v2.6.x Nov 3, 2021
v0.6.2 v2.6.x Oct 13, 2021
v0.6.1 v2.6.x Sep 30, 2021
v0.6.0 v2.6.x Sep 28, 2021
v0.5.0 v2.6.x Aug 29, 2021
v0.4.0 v2.6.x Aug 18, 2021
====================== ======================== ============
.. end-install
Documentation
-------------
Visit the `docs <https://mrphys.github.io/tensorflow-mri/>`_ for the API
reference and examples of usage.
Contributions
-------------
If you use this package and something does not work as you expected, please
`file an issue <https://github.com/mrphys/tensorflow-mri/issues/new>`_
describing your problem. We will do our best to help.
Contributions are very welcome. Please create a pull request if you would like
to make a contribution.
Citation
--------
If you find this software useful in your work, please
`cite us <https://doi.org/10.5281/zenodo.5151590>`_.
FAQ
---
.. start-faq
**When trying to install TensorFlow MRI, I get an error about OpenEXR which
includes:
``OpenEXR.cpp:36:10: fatal error: ImathBox.h: No such file or directory``. What
do I do?**
OpenEXR is needed by TensorFlow Graphics, which is a dependency of TensorFlow
MRI. This issue can be fixed by installing the OpenEXR library. On
Debian/Ubuntu:
.. code-block:: console
$ apt install libopenexr-dev
.. end-faq
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for tensorflow_mri-0.12.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41bf46a61e8ed2110aab8de9e379ac7d6f59dab2681b1bd11134a8d6a8016d10 |
|
MD5 | a319e2cafd71a167092309446a3a94a3 |
|
BLAKE2b-256 | 1d17b7786a817ad939741de18576487fc223bdb0d946ef773fd08d8629eb1349 |
Close
Hashes for tensorflow_mri-0.12.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4740867a634069e8e2aa04124ac177d0ab39990a1b314eea95cd861e6f40d3ff |
|
MD5 | fc206c090d3703e827f5044147148bd5 |
|
BLAKE2b-256 | ea0d48b7707e78ffcb0ba54da5a670f1c55692832227e4eef6d7b32055f36f96 |
Close
Hashes for tensorflow_mri-0.12.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6687b31686b15bede30bbcb9a5846e0394bc11892237029df06805a5fc7d103b |
|
MD5 | e44e9f66c5b0e842446887c0a576c250 |
|
BLAKE2b-256 | 38a2a59578c5f791a537a582a5f7bcc0697fb29247f9735343429f729bbd3437 |
Close
Hashes for tensorflow_mri-0.12.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfa1e0c7ab0d0da60211ddb1827d535fd55223b7bbae477c7d2d9a7b97fc8fe9 |
|
MD5 | a8e5cbdbc7d5b7d8036cebecb52fca38 |
|
BLAKE2b-256 | fe576272625fa8699b6d084b4581d12aac3b475fb7422cd808b5e512260f8f76 |