Image Segmentation
MLX
English
native-mlx
apple-silicon
medical-imaging
endoscopy
segmentation
research
Instructions to use MedMLX/flexible-unet-effnetb2-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
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
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
FlexibleUNet · Endoscopy
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 / 3.14
Quick start
uv venv --python 3.13
source .venv/bin/activate
repo="https://github.com/MedMLX/flexible-unet-mlx"
release="$repo/releases/download/v0.2.1"
uv pip install "$release/flexible_unet_mlx-0.2.1-py3-none-any.whl"
uv tool install huggingface-hub
hf download MedMLX/flexible-unet-effnetb2-mlx --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"])
Use & license
For research and education. Not validated for clinical use.
Weights: Apache-2.0. Notices.
Hardware compatibility
Log In to add your hardware
Quantized
Model tree for MedMLX/flexible-unet-effnetb2-mlx
Base model
MONAI/endoscopic_tool_segmentation