This model has been pushed to the Hub using the PytorchModelHubMixin integration:

Input geometry (config.json)

The encoder weights are the target_encoder of the original EEGPT-large checkpoint eegpt_mcae_58chs_4s_large4E.ckpt, pretrained on 58 channels resampled to 256 Hz in 4-s windows (1024 samples; patches of 64 samples = 250 ms; Wang et al., NeurIPS 2024; BINE022/EEGPT pretrain/engine_pretraining.py, img_size=[58, 256*4]). config.json therefore declares sfreq=256 and n_times=1024. The original linear-probe and fine-tuning scripts in downstream/ (BCIC-IV-2a/2b, KaggleERN, PhysioNet P300, Sleep-EDF) also bring their data to 256 Hz before the encoder; BCIC-IV-2a, recorded at 250 Hz, is interpolated to 1024 samples. n_chans=62 and chs_info list the model's channel vocabulary: the 62 rows of chan_embed, in the original CHANNEL_DICT order. Four of them (AF7, AF8, PO5, PO6) were not in the 58-channel pretraining montage, so pretraining never trained their embeddings. With your own data, pass chs_info, n_times and sfreq to from_pretrained; the channel IDs are rebuilt from the channel names. The default chan_proj_type="conv1d_constraint" adds a new 1x1 projection onto the 19 10-20 channels used by the original BCIC-IV-2a probe. chan_proj_type="none" feeds your channels to the encoder directly. The model does not resample, so resample your data to 256 Hz first.

Training data

The data that shaped these weights. The ids are the datasets: field of this card, which braindecode reads into model.card_data.datasets when you call from_pretrained (MOABB class names for MOABB datasets, OpenNeuro / NEMAR accessions, Hub ids otherwise). nm/on ids are datasets on NEMAR (on = NEMAR's copy of the OpenNeuro dataset with the same number). Rows marked private: are data the authors did not release; they are not in datasets:.

Pretrained components

The released EEGPT encoder is pretrained; the task probe/head and the default channel projection are newly initialized in braindecode. Train those components for the downstream task rather than treating this as a pretrained classifier.

Cite Braindecode

If you use this braindecode port in scientific work, cite the software on Zenodo, doi:10.5281/zenodo.17699192, and the original model and datasets cited above.

@software{braindecode,
  author = {Aristimunha, Bruno and
            Guetschel, Pierre and
            Wimpff, Martin and
            Gemein, Lukas and
            Rommel, Cedric and
            Banville, Hubert and
            Sliwowski, Maciej and
            Wilson, Daniel and
            Brandt, Simon and
            Gnassounou, Théo and
            Paillard, Joseph and
            {Junqueira Lopes}, Bruna and
            Sedlar, Sara and
            Moreau, Thomas and
            Chevallier, Sylvain and
            Gramfort, Alexandre and
            Schirrmeister, Robin Tibor},
  title = {Braindecode: toolbox for decoding raw electrophysiological brain data
           with deep learning models},
  url = {https://github.com/braindecode/braindecode},
  doi = {10.5281/zenodo.17699192},
  publisher = {Zenodo},
  license = {BSD-3-Clause},
}
Downloads last month
18,152
Safetensors
Model size
25.3M params
Tensor type
I64
·
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Space using braindecode/eegpt-pretrained 1