Skip to main content

miblab-dl

Python API for miblab's trained deep-learning models

DOI

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)

Metadata

Release files for miblab-dl 0.0.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 miblab-dl 0.0.17
File Size Uploaded Provenance Actions
miblab_dl-0.0.17.tar.gz 23.4 kB Without provenance Details for miblab_dl-0.0.17.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for miblab-dl 0.0.17
File Interpreter ABI Platform Actions
miblab_dl-0.0.17-py3-none-any.whl Python 3 none any Details for miblab_dl-0.0.17-py3-none-any.whl

Total release size: 51.7 kB

Release files / miblab_dl-0.0.17.tar.gz

Download URL miblab_dl-0.0.17.tar.gz
Size 23.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2806be9f1d8e2830308b3a283e333011ab21cbb993513919d8715bc31f511805
BLAKE2b-256 checksum
How to use checksums
dde31a4408b0da6fe00e8ca952eff23d54e3d9c26088da624d38a980a76db2bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Release files / miblab_dl-0.0.17-py3-none-any.whl

Download URL miblab_dl-0.0.17-py3-none-any.whl
Size 28.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4b69ad5426aad56dea7fbfc1c54d13cab10fe5132e6daa5ddf2fc5f4d6e5beb
BLAKE2b-256 checksum
How to use checksums
0fbcdab388c5bc4b04bb710e66b4322a4e15c5c84cd2bb24517c94f9cd41171f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Security for miblab-dl 0.0.17

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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