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
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 Distribution
Built Distribution
File details
Details for the file mindfultensors-0.0.11.tar.gz
.
File metadata
- Download URL: mindfultensors-0.0.11.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57d015fffd587b6eabf24d9eb3d596960c4cc57e700ee628b66a71d32184f9c3 |
|
MD5 | 4db31ec99a6aa989e3f409a1020820e0 |
|
BLAKE2b-256 | 5d4ea285f7b7da1f1b5abc599847d91fb70364d37f9f7dd343b267cf10558bdf |
File details
Details for the file mindfultensors-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: mindfultensors-0.0.11-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08059eb2fff0cffd0b8cabfb7db2294192819d7485c5f9a358746dcd1c9bfe4c |
|
MD5 | 45acd5fce5eaa9cc68d99248da5263a6 |
|
BLAKE2b-256 | ac6e782c72df2f15684c8dbbff86f03dcb42077c83ff268aaa10be304b0727dd |