1
stars
26
commits
TeX
primary language
Aug 26, 2026
updated
myopari: An Open-Source Edge AI Framework for Automated Quantitative Cardiac MRI Analysis.
myopari is a napari plugin for cardiac MRI segmentation and quantitative report generation. It brings ONNX-based AI inference to edge devices through an interactive interface that works with both 2D images and 3D volumes.
TIRAMISU_ACDC and TIRAMISU_EMIDEC segmentation modelsllama-cpp-pythonThe output label groups for each model are defined as below:
| Model | Segmentation output | Label value(s) |
|---|---|---|
TIRAMISU_ACDC | Right ventricle | 1 |
TIRAMISU_ACDC | Myocardium | 2 |
TIRAMISU_ACDC | Left ventricle | 3 |
TIRAMISU_EMIDEC | Cavity | 1 |
TIRAMISU_EMIDEC | Myocardium | 2, 3, 4 |
TIRAMISU_EMIDEC | Infarction | 3, 4 |
TIRAMISU_EMIDEC | No-reflow | 4 |
Some EMIDEC groups intentionally overlap: infarction and no-reflow are included in the broader myocardium group for quantitative reporting.
Plugins β myopari β myopari.segmentation_<input_layer_name>_<count>.After segmentation:
.cfg, .txt, or .md files.The report includes per-label volumes in mL and an estimated myocardium mass. If a logo is available in Resources, it is embedded in the report and copied beside the saved Markdown file.
The commands below create a dedicated Conda environment, install napari, automatically select the appropriate CPU or CUDA wheel for llama-cpp-python, and install myopari:
conda create -y -n myopari python=3.13
conda activate myopari
pip install "napari[all]==0.7.1"
# Check your CUDA version. If nvidia-smi is unavailable, use the CPU command.
# CPU:
pip install llama-cpp-python \
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
# CUDA (replace cu124 with your CUDA wheel tag, for example cu118 or cu121):
pip install llama-cpp-python \
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu132
pip install myopari
napari
After napari opens, select Plugins β myopari β myopari.
This is the easiest installation method; no terminal or programming experience is required. π
llama-cpp-python using the installer for your operating system:
llama-cpp-python installation finishes.Plugins β Install/Uninstall Plugins.Plugins β myopari β myopari. β
The plugin is also listed on the napari hub.
onnxruntime or onnxruntime-gpu is installed. For GPU inference, ensure that the CUDA and driver versions match the installed ONNX Runtime build.llama-cpp-python in napari's environment and ensure internet access is available for the first model download. Disable Use LLM for report to continue with standard report generation.Plugins β Install/Uninstall Plugins to confirm that myopari is installed and enabled.myopari is open-source software licensed under the MIT License.
23 commits
3 commits
TeX
42.3%
Python
34.8%
BibTeX Style
16.9%
Batchfile
3.4%
Shell
2.6%
1
stars
26
commits
TeX
primary language
Aug 26, 2026
updated
myopari: An Open-Source Edge AI Framework for Automated Quantitative Cardiac MRI Analysis.
myopari is a napari plugin for cardiac MRI segmentation and quantitative report generation. It brings ONNX-based AI inference to edge devices through an interactive interface that works with both 2D images and 3D volumes.
TIRAMISU_ACDC and TIRAMISU_EMIDEC segmentation modelsllama-cpp-pythonThe output label groups for each model are defined as below:
| Model | Segmentation output | Label value(s) |
|---|---|---|
TIRAMISU_ACDC | Right ventricle | 1 |
TIRAMISU_ACDC | Myocardium | 2 |
TIRAMISU_ACDC | Left ventricle | 3 |
TIRAMISU_EMIDEC | Cavity | 1 |
TIRAMISU_EMIDEC | Myocardium | 2, 3, 4 |
TIRAMISU_EMIDEC | Infarction | 3, 4 |
TIRAMISU_EMIDEC | No-reflow | 4 |
Some EMIDEC groups intentionally overlap: infarction and no-reflow are included in the broader myocardium group for quantitative reporting.
Plugins β myopari β myopari.segmentation_<input_layer_name>_<count>.After segmentation:
.cfg, .txt, or .md files.The report includes per-label volumes in mL and an estimated myocardium mass. If a logo is available in Resources, it is embedded in the report and copied beside the saved Markdown file.
The commands below create a dedicated Conda environment, install napari, automatically select the appropriate CPU or CUDA wheel for llama-cpp-python, and install myopari:
conda create -y -n myopari python=3.13
conda activate myopari
pip install "napari[all]==0.7.1"
# Check your CUDA version. If nvidia-smi is unavailable, use the CPU command.
# CPU:
pip install llama-cpp-python \
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
# CUDA (replace cu124 with your CUDA wheel tag, for example cu118 or cu121):
pip install llama-cpp-python \
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu132
pip install myopari
napari
After napari opens, select Plugins β myopari β myopari.
This is the easiest installation method; no terminal or programming experience is required. π
llama-cpp-python using the installer for your operating system:
llama-cpp-python installation finishes.Plugins β Install/Uninstall Plugins.Plugins β myopari β myopari. β
The plugin is also listed on the napari hub.
onnxruntime or onnxruntime-gpu is installed. For GPU inference, ensure that the CUDA and driver versions match the installed ONNX Runtime build.llama-cpp-python in napari's environment and ensure internet access is available for the first model download. Disable Use LLM for report to continue with standard report generation.Plugins β Install/Uninstall Plugins to confirm that myopari is installed and enabled.myopari is open-source software licensed under the MIT License.
23 commits
3 commits
TeX
42.3%
Python
34.8%
BibTeX Style
16.9%
Batchfile
3.4%
Shell
2.6%