dmusingu / lapvqa-pretrain-captioning

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: June 06 2026

Introduction of lapvqa-pretrain-captioning

Model Details of lapvqa-pretrain-captioning

LAPVQA — Pretrain (Captioning)

Part of the LAPVQA collection .

Description

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.

Architecture
Component Detail
Vision backbone ViT-L/14, 24-layer, 1024-dim, 16-head, patch 14, 384 px
Captioning decoder 6-layer causal transformer, 512-dim, GPT-2 vocab (50 257)
Loss Cross-entropy over report tokens
Training data MIMIC-CXR (physionet.org/content/mimic-cxr)
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:

https://choosealicense.com/licenses/apache-2.0

lapvqa-pretrain-captioning huggingface.co

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 Url

https://huggingface.co/dmusingu/lapvqa-pretrain-captioning

dmusingu lapvqa-pretrain-captioning online free

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:

https://huggingface.co/dmusingu/lapvqa-pretrain-captioning

lapvqa-pretrain-captioning install

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:

https://huggingface.co/dmusingu/lapvqa-pretrain-captioning

Url of lapvqa-pretrain-captioning

lapvqa-pretrain-captioning huggingface.co Url

Provider of lapvqa-pretrain-captioning huggingface.co

dmusingu
ORGANIZATIONS

Other API from dmusingu

huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 06 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 06 2026