Skip to main content

radimagenet-mlx

Extract radiology-image features with native MLX RadImageNet encoders: ResNet50, DenseNet121, InceptionV3 and InceptionResNetV2.

Docs · MedMLX

CT → embedding-based image retrieval, ranked by cosine similarity.

CT → embedding-based image retrieval, ranked by cosine similarity.

Input Output
2D image + Keras checkpoint Pooled and spatial features

Apple Silicon · Metal · Python 3.13 · uv

Quick start

uv venv --python 3.13 --seed
source .venv/bin/activate
python -m pip install "radimagenet-mlx==0.2.1"

The tagged GitHub release is an alternative installation route:

repo="https://github.com/MedMLX/radimagenet-mlx.git@v0.2.1"
python -m pip install "radimagenet-mlx @ git+$repo"

Download a RadImageNet checkpoint, then extract features:

from radimagenet_mlx.medmlx import run

result = run(
    image_path="slice.png",
    weights_path="RadImageNet-ResNet50_notop.h5",
    output_dir="features",
)
print(result["outputs"]["features_npy"])

The package contains code only and requires Python 3.13. Supply your own upstream .h5 weights under their publisher terms; the loader reads them directly without TensorFlow. Redistribution of converted weights remains unresolved. Classifier predictions require a checkpoint that includes a classifier.

License

Apache-2.0. See third-party notices. Model weights retain their publisher terms.

For research and education. Outputs require human review.

Metadata

Release files for radimagenet-mlx 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for radimagenet-mlx 0.2.1
File Size Uploaded Provenance Actions
radimagenet_mlx-0.2.1.tar.gz 22.1 kB Without provenance Details for radimagenet_mlx-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for radimagenet-mlx 0.2.1
File Interpreter ABI Platform Actions
radimagenet_mlx-0.2.1-py3-none-any.whl Python 3 none any Details for radimagenet_mlx-0.2.1-py3-none-any.whl

Total release size: 50.5 kB

Release files / radimagenet_mlx-0.2.1.tar.gz

Download URL radimagenet_mlx-0.2.1.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4111192db0cad2875c1c1bea77952e9623765ebcafa57dc7914dfabc2a1311ec
BLAKE2b-256 checksum
How to use checksums
74ebbaa769204b26bf7bf601e32888ee89ea96475681ebcf1d97b1f1f6b834f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / radimagenet_mlx-0.2.1-py3-none-any.whl

Download URL radimagenet_mlx-0.2.1-py3-none-any.whl
Size 28.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8dc55523893321ab05c656443c61febc17c93d10b739fba85206c4b564dd021
BLAKE2b-256 checksum
How to use checksums
0113f64d73e6b588e8cdbc85a70c20ec23ab1c219aef44c3a47bd4a456ed0517
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for radimagenet-mlx 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page