Zum Inhalt springen
ModelAufgelistetExtern
Herunterladen

Lapvqa Vqa Pretrain Captioning

Part of the LAPVQA collection.

ArtOtherVersionPretrain captioning bestCBewertung

Modellquelle

Art
Other
Dateigröße
197 MB
Version
vPretrain captioning best
Aktualisiert
10. Okt. 2026
Quelle
Hugging Face

Quellenbeschreibung

LAPVQA — VQA (Captioning-Pretrained Encoder)

Part of the LAPVQA collection.

Description

VQA task head trained on top of the LAPVQA captioning-pretrained encoder (lapvqa-pretrain-captioning). The encoder is kept frozen; this checkpoint contains the VQAHead state dict only. The encoder outputs 1024-dim patch tokens (ViT-L/14).

Loading

import torch
from lapvqa.vqa.model import VQAHead

ckpt = torch.load("pretrain-captioning_best.pt", map_location="cpu")
head = VQAHead(vis_dim=1024)
head.load_state_dict(ckpt)
head.eval()
# pair with encoder_final.pt from lapvqa-pretrain-captioning

Quellen

1 Quelle
Hugging FacePrimärVersion 152ffba6195f17d9168dcc7ce19705097edd8ae1
huggingface.co/dmusingu/lapvqa-vqa-pretrain-captioning/tree/152ffba6195f17d9168dcc7ce19705097edd8ae1

Verifiziert 10. Okt.

Modellartefakte

1 Artefakt

pretrain-captioning_best.pt

pt · 197 MB · SHA-256 5f6ffcfa1bc6…db40 · Hugging Face

Herunterladen

Quellenauszüge

2 Auszüge

--- tags: - chest-xray - radiology - visual-question-answering - mimic-cxr license: apache-2.0 --- # LAPVQA — VQA (Captioning-Pretrained Encoder) Part of the [LAPVQA collection](https://huggingface.co/collections/dmusingu/lapvqa). ## Description VQA task head trained on top of the **LAPVQA captioning-pretrained encoder** ([`lapvqa-pretrain-captioning`](https://huggingface.co/dmusingu/lapvqa-pretrain-captioning)). The encoder is kept frozen; this checkpoint contains the `VQAHead` state dict only. The encoder outputs 1024-dim patch tokens (ViT-L/14). ## Loading ```python import torch from lapvqa.vqa.model import VQAHead ckpt = torch.load("pretrain-captioning_best.pt", map_location="cpu") head = VQAHead(vis_dim=1024) head.load_state_dict(ckpt) head.eval() # pair with encoder_final.pt from lapvqa-pretrain-captioning ```

Source context: 0 downloads · 0 likes · Pipeline visual-question-answering · Repo dmusingu/lapvqa-vqa-pretrain-captioning