Views
No views yet

uv pip install cortex_maeuv pip install "cortex_mae @ git+https://github.com/MedARC-AI/CortexMAE.git"1git clone https://github.com/MedARC-AI/CortexMAE.git
2cd CortexMAE
3uv sync --python 3.111from cortex_mae import CortexMAE, resolve_file
2
3model = CortexMAE.from_pretrained("cortex_mae_flat")
4
5path = resolve_file(
6 "s3://openneuro.org/ds006072/NON_BIDS/ciftis/sub-1_Drug2_rsfMRI_uout_bpss_sr_noGSR_sm4.dtseries.nii",
7 anon=True,
8)
9embeds = model.run_embedding(path)
10print(embeds.patch_embeds.shape) # (clips, tokens, dim)| name | input space | shape | size |
|---|---|---|---|
cortex_mae_flat | flat map | 224×560 | ViT-B |
cortex_mae_parcel | Schaefer-400 | 400×1 | ViT-B |
cortex_mae_volume | MNI cortex | 465×512 | ViT-B |
cortex_mae.list_models().1model = CortexMAE.from_pretrained("cortex_mae_flat") # default
2model = CortexMAE.from_pretrained("cortex_mae_flat_r2") # repeat with new seed
3model = CortexMAE.from_pretrained("cortex_mae_flat_d6") # depth-6 modelinput_space_v3/flat_lr1e-3_1/pretrain/config.yaml) and logs for reproducibility.1export AWS_ACCESS_KEY_ID=...
2export AWS_SECRET_ACCESS_KEY=...
3export AWS_ENDPOINT_URL_S3=... # Cloudflare R2 endpoint1@inproceedings{lane2026scaling,
2 title={Scaling Vision Transformers for Functional MRI with Flat Maps},
3 author={Connor Lane and Mihir Tripathy and Leema Krishna Murali and Ratna Sagari Grandhi and Shamus Sim Zi Yang and Sam Gijsen and Debojyoti Das and Manish Ram and Utkarsh Kumar Singh and Cesar Kadir Torrico Villanueva and Yuxiang Wei and Will Beddow and Gianfranco Cortés and Suin Cho and Daniel Z. Kaplan and Benjamin Warner and Tanishq Mathew Abraham and Paul S. Scotti},
4 booktitle={ICML},
5 year={2026},
6}