Views
No views yet
| file | architecture | resolution | val AUROC |
|---|---|---|---|
densenet121_wbce_asl_medical_320.pt | densenet121 | 320px | 0.8414 |
swin_t_wbce_asl_medical_320.pt | swin_t | 320px | 0.8395 |
| model | mean AUROC | 95% CI | mean AUPRC |
|---|---|---|---|
| densenet121_wbce_asl_medical_320 | 0.8106 | 0.8036-0.8167 | 0.2855 |
| swin_t_wbce_asl_medical_320 | 0.8184 | 0.8127-0.8236 | 0.2818 |
[
"Atelectasis",
"Cardiomegaly",
"Consolidation",
"Edema",
"Effusion",
"Emphysema",
"Fibrosis",
"Hernia",
"Infiltration",
"Mass",
"Nodule",
"Pleural_Thickening",
"Pneumonia",
"Pneumothorax"
]1import torch, torchvision.models as tvm, torch.nn as nn
2from huggingface_hub import hf_hub_download
3
4p = hf_hub_download("Yzaza/nih-cxr-models", "swin_t_320.pt")
5ck = torch.load(p, map_location="cpu", weights_only=False)
6m = tvm.swin_t(weights=None)
7m.head = nn.Linear(m.head.in_features, 14)
8m.load_state_dict(ck["model"]); m.eval()
9# preprocess: grayscale -> 3ch, resize to ck["crop"], ImageNet normalisation