Practical overview
When it fits
Use it when you need research code for EEG model pretraining or fine-tuning, or want to build a task-specific classifier on top of the pretrained model.
Who it is for
- EEG researchers working on clinical or brain-computer interface decoding.
- Developers and researchers adapting pretrained EEG representations to downstream classification tasks.
Documented uses
- Pretrain CBraMod on an EEG dataset, including a custom pretraining dataset.
- Fine-tune the model on a selected or custom downstream dataset.
- Load the pretrained checkpoint and attach a classifier for downstream EEG classes.
Requirements & limits
The repository is public and MIT-licensed. The README links to a pretrained checkpoint on Hugging Face.
- The project provides model and training code rather than a packaged clinical or BCI application.
- The README’s example classifier uses an input shape of (8, 22, 4, 200) and four output classes; task-specific data and classifier choices may differ.
- Python, PyTorch and the repository’s listed requirements are part of the documented setup.
- The README links to a pretrained checkpoint, as well as pretraining and fine-tuning entry-point scripts.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Set up the CBraMod Python environment
Install the documented Python dependencies before using the repository’s pretraining or fine-tuning code.
Before you start
- Python
- PyTorch
- The CBraMod repository and its requirements.txt file
Steps
Install Python.
Install PyTorch using the official PyTorch installation guidance.
From the repository, install the listed requirements with the command below.
pip install -r requirements.txt
Expected outcome
The documented Python, PyTorch and repository requirements are installed for proceeding to the repository’s pretraining or fine-tuning stage.
Guide limitations
- The setup instructions do not specify Python or PyTorch versions.
- Installing requirements does not itself pretrain or fine-tune a model.
- The repository’s subsequent training commands and dataset preparation are separate stages.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 8 October 2026
- Original website title
- wjq-learning/CBraMod · Official homepage title · retained in its source language

