Views
No views yet
32 × 24 × 24 token grid (D=1024).vjepa2_1_vitl_dist_vitG_384.pt using the
HF port at github.com/Dev-Jahn/vjepa2-hf.1import torch
2from transformers import AutoModel
3
4model = AutoModel.from_pretrained(
5 "Dev-Jahn/vjepa2.1-vitl-fpc64-384", trust_remote_code=True,
6).eval().cuda()
7
8# channels-first (B, C, T, H, W); H=W=384, ImageNet-normalized
9pixel_values_videos = torch.randn(1, 3, 32, 384, 384, device="cuda")
10with torch.no_grad():
11 feats = model(pixel_values_videos, skip_predictor=True).last_hidden_state # (B, N, 1024)
12
13# dense grid: N = (T/2)*(384/16)*(384/16)
14grid = feats.reshape(feats.shape[0], 16, 24, 24, -1) # for T=32