Views
No views yet
AutoModel variant is enhanced_all, trained on all available BoldMoments/Lahner2024 and McMahon2023 datasets.
[B, T, C, H, W] (so T is about 36) with values in [0, 1].[B, 20484].forward_features(features);
model.decoders exposes one entry per feature layer, each with mean/std shaped [1, feature_dim].224 x 224 and applies ImageNet normalization before V-JEPA2 feature extraction.1import torch
2from transformers import AutoModel
3
4model = AutoModel.from_pretrained(
5 "epfl-neuroai/vjepa2-encoder-enhanced",
6 trust_remote_code=True,
7)
8model.eval()
9
10# Replace this with a preprocessed 3-second video clip at ~12 fps (about 36 frames),
11# which is the setting the encoder was trained on.
12# Shape: [batch, frames, channels, height, width].
13video = torch.zeros(1, 36, 3, 224, 224)
14
15with torch.no_grad():
16 prediction = model.predict_fmri(video)
17
18print(prediction.shape) # [1, 20484]1model = AutoModel.from_pretrained(
2 "epfl-neuroai/vjepa2-encoder-enhanced",
3 trust_remote_code=True,
4 load_vjepa=False,
5)
6
7features = [
8 torch.zeros(1, decoder.mean.shape[1])
9 for decoder in model.decoders
10]
11
12with torch.no_grad():
13 prediction = model.forward_features(features)enhanced_all (default): enhanced decoder trained on all BMD/Lahner + McMahon data.basic_all: six-layer Ridge baseline trained on all BMD/Lahner + McMahon data.enhanced_joint_train_to_joint_val: enhanced decoder trained on joint train split and evaluated on joint validation.basic_joint_train_to_joint_val: matched six-layer Ridge joint validation baseline.enhanced_bmd_to_mcmahon, basic_bmd_to_mcmahon: train on BMD/Lahner, transfer to McMahon.enhanced_mcmahon_to_bmd, basic_mcmahon_to_bmd: train on McMahon, transfer to BMD/Lahner.variant=... to from_pretrained to load a non-default checkpoint.| variant | self-val corr | self-val MSE | transfer corr | transfer MSE |
|---|---|---|---|---|
basic_bmd_to_mcmahon | 0.252398 | 0.110704 | 0.141452 | 0.130703 |
enhanced_bmd_to_mcmahon | 0.367588 | 0.104918 | 0.160433 | 0.131168 |
basic_mcmahon_to_bmd | 0.381099 | 0.112007 | 0.099842 | 0.157052 |
enhanced_mcmahon_to_bmd | 0.587974 | 0.095665 | 0.108977 | 0.145696 |
basic_joint_train_to_joint_val | 0.249488 | 0.114624 | - | - |
enhanced_joint_train_to_joint_val | 0.344799 | 0.110238 | - | - |
enhanced_all.pth: default enhanced all-data decoder checkpoint.basic_*.pth, enhanced_*.pth: comparison and evaluation decoder checkpoints.vitl.pt: local V-JEPA2-large backbone weights.config.json, configuration_vjepa2_fmri_encoder.py, modeling_vjepa2_fmri_encoder.py: custom Transformers files for AutoModel loading.metrics.json: held-out metrics used by the model card.assets/comparison_metrics.png: joint validation comparison plot.pretrained=False, then loads the local vitl.pt weights directly. This avoids relying on a moving external checkpoint URL while preserving compatibility with the decoder feature hooks.1
2@article{tang2025diverse,
3 title={Diverse perceptual representations across visual pathways emerge from a single objective},
4 author={Tang, Yingtian and Gokce, Abdulkadir and Al-Karkari, Khaled Jedoui and Yamins, Daniel and Schrimpf, Martin},
5 journal={bioRxiv},
6 pages={2025--07},
7 year={2025},
8 publisher={Cold Spring Harbor Laboratory}
9}
10
11@article{bardes2024revisiting,
12 title={Revisiting Feature Prediction for Learning Visual Representations from Video},
13 author={Bardes, Adrien and Garrido, Quentin and Ponce, Jean and Chen, Xinlei and Rabbat, Michael and LeCun, Yann and Assran, Mahmoud and Ballas, Nicolas},
14 journal={arXiv preprint arXiv:2404.08471},
15 year={2024}
16}
17
18@article{assran2025vjepa2,
19 title={V-JEPA 2: Self-Supervised Video Models Enable Understanding, Prediction and Planning},
20 author={Assran, Mido and Bardes, Adrien and Fan, David and Garrido, Quentin and Howes, Russell and Komeili, Mojtaba and Muckley, Matthew and Rizvi, Ammar and Roberts, Claire and Sinha, Koustuv and others},
21 journal={arXiv preprint arXiv:2506.09985},
22 year={2025}
23}
24
25@article{lahner2024modeling,
26 title={Modeling short visual events through the BOLD moments video fMRI dataset and metadata},
27 author={Lahner, Benjamin and Dwivedi, Kshitij and Iamshchinina, Polina and Graumann, Monika and Lascelles, Alex and Roig, Gemma and Gifford, Alessandro Thomas and Pan, Bowen and Jin, SouYoung and Ratan Murty, N Apurva and others},
28 journal={Nature communications},
29 volume={15},
30 number={1},
31 pages={6241},
32 year={2024},
33 publisher={Nature Publishing Group UK London}
34}
35
36@article{mcmahon2023hierarchical,
37 title={Hierarchical organization of social action features along the lateral visual pathway},
38 author={McMahon, Emalie and Bonner, Michael F and Isik, Leyla},
39 journal={Current Biology},
40 volume={33},
41 number={23},
42 pages={5035--5047},
43 year={2023},
44 publisher={Elsevier}
45}