ILSVRC/imagenet-1k
Viewer • Updated • 1.43M • 76.8k • 818
Wang et al., 2022 — PVT v2: Improved Baselines with Pyramid Vision Transformer (arXiv:2106.13797)
Lucid port of timm/pvt_v2_b4.in1k,
converted to Lucid-native safetensors.
| Tag | acc@1 | acc@5 | Params | GFLOPs | Size | Source |
|---|---|---|---|---|---|---|
IN1K (default) |
83.6 | — | 62.6M | — | 238.71 MB | timm |
import lucid.models as models
from lucid.models.weights import PVTv2B4Weights
# default tag
model = models.pvt_v2_b4_cls(pretrained=True)
# explicit tag (enum or string)
model = models.pvt_v2_b4_cls(weights=PVTv2B4Weights.IN1K)
model = models.pvt_v2_b4_cls(pretrained="IN1K")
# preprocessing travels with the weights
weights = PVTv2B4Weights.IN1K
preprocess = weights.transforms()
logits = model(preprocess(image)[None]).logits
Converted from timm/pvt_v2_b4.in1k via
python -m tools.convert_weights pvt_v2_b4 --tag IN1K.
Key mapping + numerical parity verified against the source.
apache-2.0 — inherited from the original weights.
@article{wang2022pvtv2,
title={PVT v2: Improved Baselines with Pyramid Vision Transformer},
author={Wang, Wenhai and Xie, Enze and Li, Xiang and Fan, Deng-Ping and Song, Kaitao and Liang, Ding and Lu, Tong and Luo, Ping and Shao, Ling},
journal={Computational Visual Media}, year={2022}
}