bruAristimunha commited on
Commit
7de012f
·
verified ·
1 Parent(s): 4ff3249

Add ST-EEGFormer base (ported from ST-EEGFormer-base)

Browse files
Files changed (4) hide show
  1. README.md +49 -0
  2. config.json +20 -0
  3. model.safetensors +3 -0
  4. pytorch_model.bin +3 -0
README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: braindecode
3
+ tags:
4
+ - braindecode
5
+ - STEEGFormer
6
+ - eeg
7
+ - foundation-model
8
+ license: mit
9
+ ---
10
+
11
+ # STEEGFormer (base)
12
+
13
+ ViT-MAE EEG foundation model — braindecode port of **ST-EEGFormer** (base variant).
14
+
15
+ ## Provenance
16
+
17
+ - **Weights ported from:** [LiuyinYang1101/STEEGFormer](https://github.com/LiuyinYang1101/STEEGFormer),
18
+ release [`ST-EEGFormer-base`](https://github.com/LiuyinYang1101/STEEGFormer/releases/tag/ST-EEGFormer-base)
19
+ (asset `checkpoint-288.pth`).
20
+ - **Upstream license:** MIT. The braindecode wrapper code is BSD-3-Clause.
21
+ - The pre-trained encoder is loaded faithfully (numerical equivalence verified:
22
+ pre-encoder bit-exact, post-encoder relative error ~4e-6). The MAE decoder is
23
+ dropped and the classification head is re-initialised.
24
+
25
+ ## Architecture
26
+
27
+ | | embed_dim | depth | num_heads | patch_size | channel vocab |
28
+ |---|---|---|---|---|---|
29
+ | base | 768 | 12 | 12 | 16 | 145 |
30
+
31
+ Channel positions are resolved from electrode names in `chs_info` (145-slot shared montage vocabulary).
32
+
33
+ ## Usage
34
+
35
+ ```python
36
+ from braindecode.models import STEEGFormer
37
+
38
+ model = STEEGFormer.from_pretrained(
39
+ "braindecode/STEEGFormer-base",
40
+ n_outputs=4, n_chans=22, n_times=1000, chs_info=chs_info,
41
+ )
42
+ # Encoder features: out = model(x, return_features=True); out["features"]
43
+ ```
44
+
45
+ ## Citation
46
+
47
+ Yang, L., Sun, Q., Li, A. & Van Hulle, M. M. (2026). *Are EEG foundation models
48
+ worth it? Comparative evaluation with traditional decoders in diverse BCI tasks.*
49
+ ICLR 2026. https://openreview.net/forum?id=5Xwm8e6vbh
config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "n_outputs": 4,
3
+ "n_chans": 22,
4
+ "chs_info": null,
5
+ "n_times": 1000,
6
+ "input_window_seconds": null,
7
+ "sfreq": null,
8
+ "patch_size": 16,
9
+ "embed_dim": 768,
10
+ "depth": 12,
11
+ "num_heads": 12,
12
+ "mlp_ratio": 4.0,
13
+ "drop_prob": 0.0,
14
+ "drop_path": 0.0,
15
+ "activation": "torch.nn.modules.activation.GELU",
16
+ "global_pool": "avg",
17
+ "n_chans_pos": 145,
18
+ "chan_pos_idx": null,
19
+ "braindecode_version": "1.6.1dev0"
20
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9fe864b700544a1a832da258ec64525f888dc80be790c977ee0d669b6bc652a
3
+ size 340756448
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6be3bbe0edc2cd47d7030475010e5fdbb4b49c88bf9478148c4a6f875a6599c3
3
+ size 340811523