Image Segmentation
MLX
Safetensors
English
native-mlx
apple-silicon
medical-imaging
x-ray
segmentation
noncommercial
research
Instructions to use MedMLX/flexray-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use MedMLX/flexray-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download MedMLX/flexray-mlx --local-dir flexray-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
|
Download README.md from MedMLX/flexray-mlx: direct link, hf CLI and curl.
- Browser
- Download file 1.72 kB
-
https://huggingface.co/MedMLX/flexray-mlx/resolve/main/README.md
- Command line
-
hf download hf://MedMLX/flexray-mlx/README.md
-
curl -L -o README.md https://huggingface.co/MedMLX/flexray-mlx/resolve/main/README.md
1.72 kB
metadata
license: cc-by-nc-4.0
library_name: mlx
tags:
- mlx
- native-mlx
- apple-silicon
- medical-imaging
- x-ray
- segmentation
- noncommercial
- research
language:
- en
inference: false
pipeline_tag: image-segmentation
base_model: VictorButoi/flexray
FleXray · Radiographs
Segment anatomical structures in radiographs with the released FleXray flux0375 member.
| Input | Output |
|---|---|
| Radiograph | Anatomical segmentation |
Apple Silicon · Metal · Python 3.13 / 3.14
Quick start
uv venv --python 3.13
source .venv/bin/activate
repo="https://github.com/MedMLX/flexray-mlx"
release="$repo/releases/download/v0.2.1"
uv pip install "$release/flexray_mlx-0.2.1-py3-none-any.whl"
uv tool install huggingface-hub
hf download MedMLX/flexray-mlx --local-dir models
Replace the example input paths with your own files.
from flexray_mlx.medmlx import run
result = run(
image_path='chest.png',
weights_path='models',
output_dir='outputs',
label_name='lungs',
ensemble=False,
)
print(result["outputs"])
Includes the flux0375 member. Keep ensemble=False.
Use & license
For research and education. Not validated for clinical use.
Weights: CC-BY-NC-4.0 · noncommercial. Notices.