Skip to main content

Dataloader that serves MRI images from a mogodb

Project description

mindfultensors

Dataloader that serves MRI images from a mogodb.

The main idea is to keep MRI images and corresponding training labels for segmentation tasks in a mongo database. However, each 3D MRI tensor even in 8 bit precision is 16Mb. mongo's records cannot be larger than this limit and we need to also store the labels of the same dimensions. mindfultensors fetches and aggregates each tensor stored across multiple records, together with corresponding labels either for gray and white matter, 104 regions atlas, volume of each of 104 ROIs, or a 50 region atlas.

installation

The package is on pypy and the simplest way to install it is

pip install mindfultensors

However, to tinker with it you can also clone the repo:

git clone git@github.com:neuroneural/mindfultensors.git

Then change directory to the newly cloned repository:

cd mindfultensors

And install locally by

pip intall -e .

usage

A detailed example of how to create a dataloader using provided dataset class and the corresponding tools is in scripts/usage_example.py

Do not forget to move the batches to the GPU once obtained.

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

mindfultensors-0.0.12.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

mindfultensors-0.0.12-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file mindfultensors-0.0.12.tar.gz.

File metadata

  • Download URL: mindfultensors-0.0.12.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mindfultensors-0.0.12.tar.gz
Algorithm Hash digest
SHA256 29e531d006e17263aaac3ed45883ffd0e298a1bd5fb15494eb47139a9f1d6ff3
MD5 201fb6eb2d7e68699f48f6e0bd3ee334
BLAKE2b-256 8dfab973786e176d7b3c3a66813bfcb1d7b621eff41dc53c2893fd4a6ad6ab77

See more details on using hashes here.

File details

Details for the file mindfultensors-0.0.12-py3-none-any.whl.

File metadata

File hashes

Hashes for mindfultensors-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 489fdfcdb456940fc23495eeb0dafabbe9e9fbc5bff93f9d1b39da2105bdb1f1
MD5 cc11ccdef10ec0af6c285eddbebf59d5
BLAKE2b-256 3e07e6c6725541e7d88733bfbc4549fd3a1e07c8ebc812e586388a070a7b9157

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