Skip to main content

Python API for miblab's trained deep-learning models

Project description

miblab-dl

Python API for miblab's trained deep-learning models

Installation in a working environment

If you are working in an existing environment with pytorch already installed, then all you need is this:

pip install miblab-dl

Installation from scratch

If you start from scratch, first create a virtual environment, activate it and make sure you have the latest pip version.

On Windows:

python -m venv myenv
myenv/Scripts/activate
python -m pip install --upgrade pip

On Mac or Linux:

python -m venv myenv
source myenv/bin/activate
python -m pip install --upgrade pip

Now install pytorch in your environment:

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

Then install the miblab-dl package:

pip install miblab-dl

Usage

You can import miblab-dl functionality in a python script like this:

import miblab_dl as dl

Then to compute fat and water maps from numpy arrays representing in_phase and opposed_phase Dixon images:

fat, water = dl.fatwater(opposed_phase, in_phase)

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

miblab_dl-0.0.9.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

miblab_dl-0.0.9-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file miblab_dl-0.0.9.tar.gz.

File metadata

  • Download URL: miblab_dl-0.0.9.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for miblab_dl-0.0.9.tar.gz
Algorithm Hash digest
SHA256 1d2bab14aef0fb09d7e7f42295059dc6a03f21854334a1b5c4376db8f74fca67
MD5 a4c160a89a840e436aadb9c73c1b01d7
BLAKE2b-256 356ca10f36e6cdcf1542c7d7da5b0a5f59c6b420e4eea0ea38bc07849a5897a2

See more details on using hashes here.

File details

Details for the file miblab_dl-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: miblab_dl-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for miblab_dl-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 dc01fe3037deb1679edce987d7f00aa247a07f88ed8647a81e0e98d5229efdcc
MD5 f8e2f1570f1b88e1a21cc0d2df982fb3
BLAKE2b-256 61aa4d4bb66098d4400cc9adf88d1fd3624b384cbef73d608f1af923e8dce58d

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