mlmed/torchxrayvision
TorchXRayVision: A library of chest X-ray datasets and models. Classifiers, segmentation, and autoencoders. observed · 2026-08-28
Health v2 · maintenance only
91/100
- Activity 99
- Release rhythm 75
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 92.0
- age_days: 2373
- days_rel: 9
- days_push: 9
- n_releases_24m: 7
Adoption not part of the score
1183 stars · 256 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
TorchXRayVision is an open-source PyTorch library providing pre-trained deep learning models and a unified interface for publicly available chest X-ray datasets. It bundles classifiers for pathology detection, segmentation models, autoencoders, and feature extractors with consistent preprocessing so models and datasets can be swapped with minimal code changes.
Use cases
- classify chest X-rays for pathologies like pneumonia, cardiomegaly, and pneumothorax without training from scratch
- extract feature vectors from chest radiographs for few-shot or transfer learning
- load and preprocess multiple public chest X-ray datasets through one uniform interface
- evaluate model robustness across external datasets and distributional shifts
- use pre-trained models as baselines for new medical imaging research
- segment anatomical structures in chest radiographs
- run inference on DICOM or JPEG X-ray images in a Python pipeline
When to choose
- you need pre-trained chest X-ray models for research, prototyping, or feature extraction
- you want to benchmark across many public CXR datasets with consistent preprocessing
- you are building a PyTorch pipeline and want differentiable models that integrate seamlessly
- you need rapid analysis of large radiograph cohorts without training from scratch
When to avoid
- you need a clinically validated diagnostic tool - the library is explicitly not for medical or clinical decision making
- you work with imaging modalities other than chest X-rays
- you need a non-PyTorch framework like TensorFlow or ONNX-only deployment
- you require guaranteed trained outputs for every pathology label - some model heads may be untrained
Facets
library · maturity active
machine-learning deep-learning image-processing computer-vision sdk healthcare machine-learning deep-learning python cross-platform chest-xray medical-imaging pytorch pretrained-models transfer-learning feature-extraction radiology dataset-loading pathology-classification segmentation autoencoder research-tool not-for-clinical-use research gpu
5 sources
- readme: https://github.com/mlmed/torchxrayvision · fetched 2026-08-28 · 548f31e5f867
- homepage: https://mlmed.org/torchxrayvision · fetched 2026-08-29 · 291ae7185d21
- registry_pypi: https://pypi.org/pypi/torchxrayvision/json · fetched 2026-08-29 · ac651fc75c6b
- site_page: https://mlmed.org/torchxrayvision/models.html · fetched 2026-08-29 · cf337a0d8db5
- site_page: https://mlmed.org/torchxrayvision/faq.html · fetched 2026-08-29 · 219451ac9d3b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mlmed/torchxrayvision | main | 91 |
For agents
markdown · JSON · MCP: product_card(name="mlmed/torchxrayvision")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem