A
ViT-L/14 vision encoder trained from scratch on
MIMIC-CXR chest X-ray / report pairs
using
InfoNCE contrastive learning (image encoder vs. 6-layer bidirectional text encoder).
The encoder is intended to be used as a frozen feature extractor for downstream CXR tasks.
1import torch
2from lapvqa.pretrain.model import ContrastiveModel
3
4ckpt = torch.load("encoder_final.pt", map_location="cpu")
5model = ContrastiveModel()
6model.vision_encoder.load_state_dict(ckpt)
7model.eval()
1@article{johnson2019mimic,
2 title = {MIMIC-CXR, a de-identified publicly available database of chest radiographs with free-text reports},
3 author = {Johnson, Alistair EW and others},
4 journal = {Scientific data},
5 volume = {6}, pages = {317}, year = {2019}
6}