dmusingu / lapvqa-pg

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-pg

Model Details of lapvqa-pg

LAPVQA — Phrase Grounding

Part of the LAPVQA collection .

Description

TransVG-style phrase grounding heads trained on MIMIC-CXR, predicting the bounding box of a described abnormality given the chest X-ray and a text phrase. Each checkpoint is a dict: {state_dict, vis_dim, txt_dim, d_model, num_layers, encoder, epoch, val_miou, val_acc50} .

Architecture — VisualGroundingHead
vis_proj   : Linear(vis_dim → 256)
txt_proj   : Linear(txt_dim → 256)
reg_token  : Parameter [1, 1, 256]
sequence   : [REG | vis_tokens | txt_token]
transformer: 3 × TransformerEncoderLayer (self-attn, pre-norm)
box_head   : MLP(256 → 256 → 4)   # sigmoid → (cx,cy,w,h) ∈ [0,1]
Results (MIMIC-CXR test set)

Zero-shot: mIoU ≈ 0.082–0.089 across all encoders.

Fine-tuned (MAE-ViT-L/16): mIoU 0.320, [email protected] 0.569, Pointing Acc 0.593.

File Encoder vis_dim txt_dim
clip-vit-l14.pt CLIP ViT-L/14 1024 768
siglip.pt SigLIP 1152 1152
florence2.pt Florence-2 1024 768
coca.pt CoCa 768 768
owlv2.pt OWLv2 1024 768
mae-vit-l16.pt MAE ViT-L/16 1024 768
Loading
import torch
from lapvqa.pg.heads import VisualGroundingHead

ckpt = torch.load("mae-vit-l16.pt", map_location="cpu")
head = VisualGroundingHead(
    vis_dim    = ckpt["vis_dim"],
    txt_dim    = ckpt["txt_dim"],
    d_model    = ckpt["d_model"],
    num_layers = ckpt["num_layers"],
)
head.load_state_dict(ckpt["state_dict"])
head.eval()

with torch.no_grad():
    # vis_tokens: [B, HW, vis_dim] — spatial patch tokens from frozen encoder
    # txt_vec:    [B, txt_dim]     — pooled text representation from frozen encoder
    pred_boxes = head(vis_tokens, txt_vec)  # [B, 4] (cx,cy,w,h) in [0,1]

Runs of dmusingu lapvqa-pg 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-pg huggingface.co Model

More lapvqa-pg license Visit here:

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

lapvqa-pg huggingface.co

lapvqa-pg huggingface.co is an AI model on huggingface.co that provides lapvqa-pg's model effect (), which can be used instantly with this dmusingu lapvqa-pg model. huggingface.co supports a free trial of the lapvqa-pg model, and also provides paid use of the lapvqa-pg. Support call lapvqa-pg model through api, including Node.js, Python, http.

dmusingu lapvqa-pg online free

lapvqa-pg huggingface.co is an online trial and call api platform, which integrates lapvqa-pg's modeling effects, including api services, and provides a free online trial of lapvqa-pg, you can try lapvqa-pg online for free by clicking the link below.

dmusingu lapvqa-pg online free url in huggingface.co:

https://huggingface.co/dmusingu/lapvqa-pg

lapvqa-pg install

lapvqa-pg is an open source model from GitHub that offers a free installation service, and any user can find lapvqa-pg on GitHub to install. At the same time, huggingface.co provides the effect of lapvqa-pg install, users can directly use lapvqa-pg installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

lapvqa-pg install url in huggingface.co:

https://huggingface.co/dmusingu/lapvqa-pg

Url of lapvqa-pg

lapvqa-pg huggingface.co Url

Provider of lapvqa-pg huggingface.co

dmusingu
ORGANIZATIONS

Other API from dmusingu

huggingface.co

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