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
source .venv/bin/activate
uv pip install radimagenet-mlx

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 .h5 weights load directly; TensorFlow is not needed. 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.2

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.2
File Size Uploaded Provenance Actions
radimagenet_mlx-0.2.2.tar.gz 22.3 kB Without provenance Details for radimagenet_mlx-0.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 50.9 kB

Release files / radimagenet_mlx-0.2.2.tar.gz

Download URL radimagenet_mlx-0.2.2.tar.gz
Size 22.3 kB
Tags Source
SHA-256 checksum
How to use checksums
34b142455d14187f76780b6ad50c64580a994ae15a5cdeaf1867810e1e8581a9
BLAKE2b-256 checksum
How to use checksums
d77a9d163acdfeae878a664b79c83fb4f34ea414b5769399165df0438de2c5bd
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.2-py3-none-any.whl

Download URL radimagenet_mlx-0.2.2-py3-none-any.whl
Size 28.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cac89d01a0148be8ea518bcba7354ff08513a61e727c10df7dcc665f0c6c2d85
BLAKE2b-256 checksum
How to use checksums
9ee53abeabdfaf737a5590ef33d979d22b066f3d2614a187bb8d0f110e5a299d
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.2

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.2 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