Skip to main content

EMCqMRI

The EMCqMRI is a PyTorch-based package designed with the goal to accelerate initial developments in the field of quantitative MRI (qMRI).

It provides the base classes for the implementation of task-specific custom modules and offers a framework for training Deep Learning inference models and prediction of quantitative maps.

Validated qMRI methods, including signal models, likelihood functions and inference methods, are already included within this package.


Installing

Preparing the development enviroment

  • Create a virtual environment for the project: python3 -m venv venv_example_project

  • Activate the virtual environment: . venv_example_project/bin/activate

  • Upgrade pip and install wheel: pip3 install --upgrade pip wheel (this will make sure you have no errors and warnings during installations with pip)

Installing PyTorch

  • MacOS without CUDA support: pip3 install torch torchvision

  • MacOS with CUDA support: follow instructions at this URL: https://github.com/pytorch/pytorch#from-source

  • Linux with CUDA support: pip3 install torch torchvision

  • Windows with CUDA support: pip3 install torch==1.7.1 torchvision==0.8.2 -f https://download.pytorch.org/whl/torch_stable.html

Installing the EMCqMRI package with PIP

  • After activating your virtual enviroment, run: pip3 install EMCqMRI.

Validating the installation

Once installed, you can verify if everything is running correctly.

  • Start a Python session in your terminal: python3
  • Import the EMCqMRI package: import EMCqMRI
  • Verify the package version: print(EMCqMRI.__version__)

Support

The following configurations were used and proved to work. Please, let us know if you tested the packaged in a different OS, Python version or PyTorch version.

  OS

      macOS macOS

      Linux Linux

      Windows

  Python

       Python Python Python Python

  PyTorch

      Python Python Python Python Python


Projects using the EMCqMRI


Using the EMCqMRI in your project

The documentation for the APIs and implemented modules can be found at: https://emcqmri.readthedocs.io/en/latest/

APIs

  • Signal Model: It provides an interface for the implementation of custom signal models for model-based inference of quantitative MRI parameters.

  • Likelihood Model: This interface allows for the implementation of custom likelihood models for model-based inference methods. In many cases, this model is also referred to as the data consistency model.

  • Inference Model: Interface for the implementation of custom inference models. The EMCqMRI supports model-drive, data-drive and hibrid (data/model-driven) methods.

  • Dataset Model: Interface for the construction of custom dataset models. These might include the generation of simulated data, loading of existing training and testing datasets, pre-processing and data augmentation techniques, etc.


Creating custom modules and configuration

The creation of custom modules is straighforward using the EMCqMRI APIs. You can follow this short tutorial to create the basis of a new project, and learn how to link custom modules to the EMCqMRI core.

You can read more about the configuration files required to use the EMCqMRI here: Configuration Files


Contributing / Reporting issues

Please refer to the project's coding and documentation style for submitting patches and additions. In general, we follow the "fork-and-pull" Git workflow.

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Commit changes to your own branch
  4. Push your work back up to your fork
  5. Submit a Pull request so that we can review your changes

NOTE: Be sure to merge the latest from "upstream" before making a pull request!


Requirements

The EMCqMRI package is based on Python and PyTorch. External dependencies are automatically installed with the package.


Known bugs

There might be differences when using the EMCqMRI with Windows, MacOS and Linux, due to different conventions in the Path style. Please report them by creating an issue on this project.

License

MIT

Metadata

Release files for EMCqMRI 1.1.17

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for EMCqMRI 1.1.17
File Size Uploaded
EMCqMRI-1.1.17.tar.gz 25.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for EMCqMRI 1.1.17
File Interpreter ABI Platform
EMCqMRI-1.1.17-py3-none-any.whl Python 3 none any Details

Total release size: 61.0 kB

Release files / EMCqMRI-1.1.17.tar.gz

Download URL EMCqMRI-1.1.17.tar.gz
Size 25.3 kB
Tags Source
SHA-256 checksum
How to use checksums
788fb3d914fa376538ce48bb306e143131f379a9677c842fc63de9aeef15cf91
BLAKE2b-256 checksum
How to use checksums
e4c971b242eef8bb55af6b5570b3155399754ec4bfb990a01e5272478541cffb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / EMCqMRI-1.1.17-py3-none-any.whl

Download URL EMCqMRI-1.1.17-py3-none-any.whl
Size 35.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
349c00b31fbbecce3ec6ef513ea2deec7cf48135de149561cacaa46313c89472
BLAKE2b-256 checksum
How to use checksums
4b16ce85821ab51fde2dac6127e4b9f813bcc01047f5901df1476aa4180afce2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.1.17 This release

2 release files

1.1.16

2 release files

1.1.15

2 release files

1.1.11

3 release files

1.1.10

3 release files

1.1.9

3 release files

1.1.8

3 release files

1.1.7

3 release files

1.1.6

3 release files

1.1.5

3 release files

1.1.4

3 release files

1.1.3

3 release files

1.1.2

3 release files

1.1.1

3 release files

1.1.0

3 release files

1.0.9

3 release files

1.0.8

3 release files

1.0.7

3 release files

1.0.6

3 release files

1.0.5

3 release files

1.0.2

3 release files

1.0.1

3 release files

1.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page