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.
Metadata
Release files for mindfultensors 0.0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mindfultensors-0.0.12.tar.gz | 6.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mindfultensors-0.0.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.3 kB
Release files / mindfultensors-0.0.12.tar.gz
| Download URL | mindfultensors-0.0.12.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29e531d006e17263aaac3ed45883ffd0e298a1bd5fb15494eb47139a9f1d6ff3
|
|
BLAKE2b-256 checksum How to use checksums |
8dfab973786e176d7b3c3a66813bfcb1d7b621eff41dc53c2893fd4a6ad6ab77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / mindfultensors-0.0.12-py3-none-any.whl
| Download URL | mindfultensors-0.0.12-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
489fdfcdb456940fc23495eeb0dafabbe9e9fbc5bff93f9d1b39da2105bdb1f1
|
|
BLAKE2b-256 checksum How to use checksums |
3e07e6c6725541e7d88733bfbc4549fd3a1e07c8ebc812e586388a070a7b9157
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for mindfultensors 0.0.12
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.