Brain MRI synthesis, compression, modality translation, and evaluation toolkit.
Project description
BrainMint
BrainMint is a Python package for brain MRI synthesis, compression, modality translation, inference utilities, and evaluation support.
This repository is the reusable package extracted from the original GenMRI study repository. It should contain library code, package-safe tests, and package documentation only. Study configs, private paths, datasets, checkpoints, generated outputs, and cloned external repositories should stay outside this repository.
Install
Install the base package with pip:
pip install brainmint
Common optional installs:
| Use case | Install command |
|---|---|
| Metrics and evaluation | pip install "brainmint[metrics]" |
| Training utilities | pip install "brainmint[train]" |
| Full runtime stack | pip install "brainmint[all]" |
Smaller targeted extras are kept in pyproject.toml for dependency control, but the commands above are the ones most users should need.
External Repositories
External model repositories are materialized outside the package tree. For research runs, set:
export BRAINMINT_EXTERNAL_ROOT=/path/to/external
or configure it in Python:
import brainmint.external
brainmint.external.set_external_repo_root("/path/to/external")
Tests
Default tests are package-safe and do not require study Hydra configs, GPU, checkpoints, network access, or cloned external repositories:
python -m pytest
Copied study-era tests are opt-in while BrainMint is being separated from the original study repository:
python -m pytest --run-study-config-tests
License
MIT. See LICENSE.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file brainmint-0.1.0.tar.gz.
File metadata
- Download URL: brainmint-0.1.0.tar.gz
- Upload date:
- Size: 225.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
beb9334195354af5b5e8433ce2fbd0bfe8f12bcae3e946134ee8c375f5d2ef49
|
|
| MD5 |
dfd43686c5e08476ab61e0d5984655fe
|
|
| BLAKE2b-256 |
290eedf6f8fe85ca87e916b8cc969c416e66990fa30b28eded17455f4c51ae42
|
Provenance
The following attestation bundles were made for brainmint-0.1.0.tar.gz:
Publisher:
release.yml on yasinzaii/brainmint
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
brainmint-0.1.0.tar.gz -
Subject digest:
beb9334195354af5b5e8433ce2fbd0bfe8f12bcae3e946134ee8c375f5d2ef49 - Sigstore transparency entry: 1739174231
- Sigstore integration time:
-
Permalink:
yasinzaii/brainmint@e80ffa22ad088036dbc6774109ebe6a702cff83f -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/yasinzaii
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e80ffa22ad088036dbc6774109ebe6a702cff83f -
Trigger Event:
push
-
Statement type:
File details
Details for the file brainmint-0.1.0-py3-none-any.whl.
File metadata
- Download URL: brainmint-0.1.0-py3-none-any.whl
- Upload date:
- Size: 268.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a8576dd43011c0e77d0ae954f7e2413619c67886da4abbe1bbbaa6088584f0c
|
|
| MD5 |
f284848e549b38c0d331f138416a8a26
|
|
| BLAKE2b-256 |
c1d2599a2562362f727ab67f3c4e10ce0bc9ec514608d11f69a38f00d5cdd291
|
Provenance
The following attestation bundles were made for brainmint-0.1.0-py3-none-any.whl:
Publisher:
release.yml on yasinzaii/brainmint
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
brainmint-0.1.0-py3-none-any.whl -
Subject digest:
9a8576dd43011c0e77d0ae954f7e2413619c67886da4abbe1bbbaa6088584f0c - Sigstore transparency entry: 1739174233
- Sigstore integration time:
-
Permalink:
yasinzaii/brainmint@e80ffa22ad088036dbc6774109ebe6a702cff83f -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/yasinzaii
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e80ffa22ad088036dbc6774109ebe6a702cff83f -
Trigger Event:
push
-
Statement type: