A
ViT-L/14 encoder + 6-layer causal decoder
trained from scratch on
MIMIC-CXR
to generate full radiology reports from chest X-ray images.
Unlike the contrastive pretrain variants, the generative objective forces the encoder
to retain fine-grained spatial information sufficient for region-level text generation.
The encoder weights (
encoder_final.pt
) serve as the strongest feature extractor
in the LAPVQA downstream tasks.
Downstream Evaluation (frozen encoder + linear probe)
Dataset
Mean AUC
NIH CXR-14 (14-class)
0.686
CheXpert-5 (5-class)
0.808
The captioning-pretrained encoder matches or exceeds the contrastive variants on both
classification benchmarks, and is the best-performing encoder on DiffVQA when used downstream.
Files
File
Description
encoder_final.pt
Vision encoder weights (used as frozen feature extractor downstream)
model_best.pt
Full encoder + decoder at best validation loss
Usage
import torch
from lapvqa.pretrain.model import CaptioningModel
ckpt = torch.load("model_best.pt", map_location="cpu")
model = CaptioningModel()
model.load_state_dict(ckpt)
model.eval()
# To use only the encoder as a feature extractor:
enc_weights = torch.load("encoder_final.pt", map_location="cpu")
model.vision_encoder.load_state_dict(enc_weights)
# vis_tokens = model.vision_encoder(images) # [B, 256, 1024]
Citation
If you use these weights please cite MIMIC-CXR:
@article{johnson2019mimic,
title = {MIMIC-CXR, a de-identified publicly available database of chest radiographs with free-text reports},
author = {Johnson, Alistair EW and others},
journal = {Scientific data},
volume = {6}, pages = {317}, year = {2019}
}
Runs of dmusingu lapvqa-pretrain-captioning on huggingface.co
0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About lapvqa-pretrain-captioning huggingface.co Model
More lapvqa-pretrain-captioning license Visit here:
lapvqa-pretrain-captioning huggingface.co is an AI model on huggingface.co that provides lapvqa-pretrain-captioning's model effect (), which can be used instantly with this dmusingu lapvqa-pretrain-captioning model. huggingface.co supports a free trial of the lapvqa-pretrain-captioning model, and also provides paid use of the lapvqa-pretrain-captioning. Support call lapvqa-pretrain-captioning model through api, including Node.js, Python, http.
lapvqa-pretrain-captioning huggingface.co is an online trial and call api platform, which integrates lapvqa-pretrain-captioning's modeling effects, including api services, and provides a free online trial of lapvqa-pretrain-captioning, you can try lapvqa-pretrain-captioning online for free by clicking the link below.
dmusingu lapvqa-pretrain-captioning online free url in huggingface.co:
lapvqa-pretrain-captioning is an open source model from GitHub that offers a free installation service, and any user can find lapvqa-pretrain-captioning on GitHub to install. At the same time, huggingface.co provides the effect of lapvqa-pretrain-captioning install, users can directly use lapvqa-pretrain-captioning installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
lapvqa-pretrain-captioning install url in huggingface.co: