Skip to main content

OmniMIRA

An anatomically indexed foundation model across structural, molecular and metabolic neuroimaging

OmniMIRA learns brain-region representations from T1-weighted MRI, amyloid PET, FDG PET and CT. It combines local image features within atlas-defined regions, allowing the same embeddings to be used for downstream prediction and regional analysis.

Release status

Version 0.2 provides the OmniMIRA v9 inference architecture, its multi-atlas resources and an epoch-1000 checkpoint. It produces anatomically indexed features and is intended for research use, not clinical diagnosis.

Installation

Requires Python 3.9 or later and PyTorch 2.0 or later.

pip install omnimira

Usage

The wheel contains the checkpoint, model-space templates and atlas definitions. Input NIfTI images must already be spatially normalized to MNI space. The package resamples them to the committed model grid and applies modality-specific intensity normalization.

from omnimira import from_pretrained

model = from_pretrained(device="cpu")
features = model.extract("scan_mni.nii.gz", modality="t1")
print(features["aal3"].shape)  # (166, 128)

The command-line interface writes an NPZ with ROI identifiers, names and features:

omnimira scan_mni.nii.gz features.npz --modality t1

The output contains 128-dimensional embeddings for each region: 166 AAL3 regions, 69 Harvard–Oxford regions and 7 Yeo networks.

The modality options are t1 (T1-weighted MRI), av45 (amyloid PET), fdg (FDG PET) and ct (CT).

Documentation

Tests

Model and loss tests use synthetic inputs:

pip install pytest
python -m pytest -q tests/test_model_forward.py tests/test_losses.py

The full test suite also requires the atlas and template files.

Questions

For questions about the code, please open an issue.

License

Source code is available under the Apache 2.0 license. The bundled pretrained model weights are licensed separately under CC BY-NC 4.0, which does not permit commercial use. Third-party resources have separate terms.

For research use only; not for clinical diagnosis.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

omnimira-0.2.1.tar.gz (10.5 MB view details)

Uploaded Source

Built Distribution

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

omnimira-0.2.1-py3-none-any.whl (10.5 MB view details)

Uploaded Python 3

File details

Details for the file omnimira-0.2.1.tar.gz.

File metadata

  • Download URL: omnimira-0.2.1.tar.gz
  • Upload date:
  • Size: 10.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for omnimira-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ad47ab293cb4bb4a1f54858142b5eaa76e94ecbfb15504ecc467b0be819e1963
MD5 745648646d14a6afb3cd99e4253d61d9
BLAKE2b-256 86691fd2296f5d47bd183488d9c01403ee98a74cc529faf62d6b187dacff465c

See more details on using hashes here.

Provenance

The following attestation bundles were made for omnimira-0.2.1.tar.gz:

Publisher: publish-pypi.yml on YixinChen-AI/MIRA-Brain-FM

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file omnimira-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: omnimira-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 10.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for omnimira-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4be9293e4577a9c0e1e427e2c234bdba30a37cd1fd7ae895053e89e57fe6c239
MD5 601330c5b5c1f730172b821f8dfb75ed
BLAKE2b-256 97c2d44b78b30d8b7e51ee4405b4413e03abd223538e3cb36da2ce6de8651644

See more details on using hashes here.

Provenance

The following attestation bundles were made for omnimira-0.2.1-py3-none-any.whl:

Publisher: publish-pypi.yml on YixinChen-AI/MIRA-Brain-FM

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.2.0

2 files

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