Downloads · 30 days
8
20% of all-time downloads
loihuynh/semisub-cxr-supervised-0.2
semisub-cxr-supervised-0.2 is a machine learning model from loihuynh. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as mit.
Semi-supervised multi-label chest X-ray classifier trained on the CheXpert dataset.
Downloads · 30 days
8
20% of all-time downloads
All-time downloads
40
Public
Repo size
94.4 MB
Likes
0
Public
Click a slice to open those files.
.pt94.4 MB · 100%
From the Hugging Face model README
Semi-supervised multi-label chest X-ray classifier trained on the CheXpert dataset.
resnet50_imagenet (ImageNet pretrained)supervisedThis model predicts the following 6 chest X-ray findings:
Cardiomegaly, Pleural Effusion, Pneumothorax, Consolidation, Atelectasis, Edema
Macro AUROC: 0.8497
| Class | AUROC |
|---|---|
| Cardiomegaly | 0.7625 |
| Pleural Effusion | 0.9194 |
| Pneumothorax | 0.8520 |
| Consolidation | 0.8323 |
| Atelectasis | 0.8182 |
| Edema | 0.9135 |
from src.utils.hub import load_from_hub
model = load_from_hub("loihuynh/semisub-cxr-supervised-0.2")
model.eval()
# Run inference on a preprocessed image tensor (1, 3, 224, 224)
import torch
with torch.no_grad():
logits = model(image_tensor)
probabilities = torch.sigmoid(logits)
If you use this model, please cite the CheXpert dataset:
@inproceedings{irvin2019chexpert,
title={CheXpert: A Large Chest Radiograph Dataset with Uncertainty Labels and Expert Comparison},
author={Irvin, Jeremy and others},
booktitle={AAAI},
year={2019}
}