MedMLX
Collection
Medical imaging models in native MLX on Apple Silicon. Paper: doi.org/10.64898/2026.10.28.26366762 • 23 items • Updated
How to use MedMLX/flexible-unet-effnetb2-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download MedMLX/flexible-unet-effnetb2-mlx --local-dir flexible-unet-effnetb2-mlx
Segment surgical tools in RGB endoscopy frames with an EfficientNet-B2 FlexibleUNet.
| Input | Output |
|---|---|
| RGB endoscopy frame | Full-resolution tool mask |
Apple Silicon · Metal · Python 3.13
uv venv --python 3.13
source .venv/bin/activate
uv pip install "flexible-unet-mlx>=0.2.6"
uv tool install huggingface-hub
hf download MedMLX/flexible-unet-effnetb2-mlx --revision ccbbc596f2a9da8477e25cba0d7548cbb2191feb --local-dir models
Replace the example input paths with your own files.
from flexible_unet_mlx.medmlx import run
result = run(
image_path='frame.jpg',
weights_path='models/flexibleunet.safetensors',
output_dir='outputs',
)
print(result["outputs"])
For research and education. Not validated for clinical use.
Weights: Apache-2.0. Notices.
If you use MedMLX, please cite the MedMLX paper:
@article{sandoval2026medmlx,
title = {MedMLX: On-Device Medical Imaging AI for Apple Silicon},
author = {Sandoval, A. and Sandoval, J. and Saleem, A.},
journal = {medRxiv},
year = {2026},
doi = {10.64898/2026.10.28.26366762}
}
Quantized
Base model
MONAI/endoscopic_tool_segmentation