RadImageNet encoders for MLX
Four RadImageNet pretrained image encoders in native MLX safetensors format for Apple Silicon:
| Architecture | File |
|---|---|
| ResNet50 | RadImageNet-ResNet50_notop.safetensors |
| DenseNet121 | RadImageNet-DenseNet121_notop.safetensors |
| InceptionV3 | RadImageNet-InceptionV3_notop.safetensors |
| InceptionResNetV2 | RadImageNet-IRV2_notop.safetensors |
The files contain float32 weights and declarative graph configuration. They omit classification heads and provide spatial and pooled features. Use them with radimagenet-mlx.
RadImageNet is the work of Xueyan Mei and co-authors at the BioMedical Engineering and Imaging Institute, Icahn School of Medicine at Mount Sinai. The model, its training method and the weights are theirs: see the original repository, BMEII-AI/RadImageNet, and the paper, Radiology: Artificial Intelligence, 2022. This repository only repackages their released weights (linked model archive) for MLX on Apple Silicon. Please cite their paper and star their repository if RadImageNet is useful to you.
Quick start
uv venv --python 3.13
source .venv/bin/activate
uv pip install "radimagenet-mlx>=0.4.0"
Replace the example input paths with your own files.
from radimagenet_mlx import run
result = run(model="radimagenet-resnet50", image_path="image.png", output_dir="outputs")
print(result["outputs"])
Weights download from this repository on first use, at a pinned revision. To fetch them yourself, download that revision and pass the folder as weights_path="models":
uv tool install huggingface-hub
hf download MedMLX/radimagenet-mlx --revision fd1c2663266360c899211c9a23ffc24f805d282a --local-dir models
Other model IDs are radimagenet-densenet121, radimagenet-inceptionv3 and radimagenet-inceptionresnetv2; the model ID selects the backbone, and only that backbone's weights download.
Provenance and terms
These are conversions of the four pretrained Keras models distributed by the official RadImageNet project in its linked model archive. RadImageNet is by Xueyan Mei and colleagues at the BioMedical Engineering and Imaging Institute, Icahn School of Medicine at Mount Sinai, and collaborators. The converted weights follow the upstream project's MIT license. The license and BMEII-AI copyright notice are reproduced in SOURCE_LICENSE. Retain these notices when redistributing the weights.
Validation and intended use
On synthetic 224 × 224 inputs, all four converted models were compared with their corresponding original Keras models. Spatial and pooled outputs passed the recorded numerical tolerances; the converted MLX outputs were identical to the original HDF5-loaded MLX outputs. These checks do not establish clinical accuracy or fitness for clinical use. Intended for research and education.
Citation
Please cite the original paper:
Mei, X. et al. (2022). RadImageNet: an open radiologic deep learning research dataset for effective transfer learning. Radiology: Artificial Intelligence, 4(5), e210315. https://doi.org/10.1148/ryai.210315
If you use MedMLX, please cite the MedMLX paper:
@article{sandoval2026medmlx,
title = {MedMLX: On-Device Medical Imaging AI for Apple Silicon},
author = {Sandoval, J. and Sandoval, A. and Saleem, A.},
journal = {medRxiv},
year = {2026},
doi = {10.64898/2026.10.28.26366762}
}