Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
Pretrained EEG encoder from the paper
What masking geometry works best for EEG foundation models? A controlled evaluation across MAE and JEPA
(
website
·
code
·
all 58 models
).
It is one of
58 encoders trained under an identical recipe
where only the masking
geometry changes: 5 spatial radii × 6 temporal lengths × 2 frameworks
(the r = all, L = 33 cell, which would mask the whole window, does not exist).
This model is a
masked autoencoder (MAE)
: the encoder sees the unmasked patches and a light decoder reconstructs the raw signal of the masked patches.
Framework
MAE
Mask spatial radius
r
one channel
Mask temporal length
L
8 patches
Masker parameter
pct_unmasked
0.45
Checkpoint
epoch 10 of 10 (
v9
, the one evaluated in the paper)
model.safetensors
: the
encoder only
(patch tokeniser
feature_encoder.*
+ transformer
model.*
), i.e. exactly the tensors loaded for the downstream evaluation of the paper.
The MAE decoder is
not included; for JEPA the published weights are the student encoder, as evaluated in the paper.
config.json
: the keyword arguments of
ContextualEncoderBenchmarkWrapper
(architecture +
input scaling). Pass it unchanged as
model_kwargs
.
Sampling rate: 200 Hz.
The signal is cut into 1 s patches (200 samples, 20-sample overlap).
Units: volts.
The wrapper multiplies by
factor = 1e+06
and applies
per-window
median_std_clip
scaling (clip at σ = 15) itself;
do not standardise the data beforehand.
Channel positions in metres
(MNE
info["chs"][i]["loc"][:3]
). The model is montage-agnostic:
any number and set of channels works, as long as every channel has a 3D position.
Usage
Install the code:
pip install git+https://github.com/PierreGtch/eeg-fm-masking
.
Loading the model
import json
from huggingface_hub import hf_hub_download
from safetensors.torch import load_file
from eeg_fm_masking.oeb.wrapper import ContextualEncoderBenchmarkWrapper
repo = "PierreGtch/eeg-fm-masking_mae_rone_L8"
config = json.load(open(hf_hub_download(repo, "config.json")))
model = ContextualEncoderBenchmarkWrapper(
n_chans=n_chans, n_times=n_times, n_outputs=n_outputs, sfreq=200.0,
chs_info=chs_info, # MNE channel info (info["chs"]), positions in metres
**config,
)
model.load_state_dict(load_file(hf_hub_download(repo, "model.safetensors")), strict=False)
strict=False
only leaves out the dataset-dependent parts (channel-position buffer and
classification head).
eeg-fm-masking_mae_rone_L8 huggingface.co is an AI model on huggingface.co that provides eeg-fm-masking_mae_rone_L8's model effect (), which can be used instantly with this PierreGtch eeg-fm-masking_mae_rone_L8 model. huggingface.co supports a free trial of the eeg-fm-masking_mae_rone_L8 model, and also provides paid use of the eeg-fm-masking_mae_rone_L8. Support call eeg-fm-masking_mae_rone_L8 model through api, including Node.js, Python, http.
eeg-fm-masking_mae_rone_L8 huggingface.co is an online trial and call api platform, which integrates eeg-fm-masking_mae_rone_L8's modeling effects, including api services, and provides a free online trial of eeg-fm-masking_mae_rone_L8, you can try eeg-fm-masking_mae_rone_L8 online for free by clicking the link below.
PierreGtch eeg-fm-masking_mae_rone_L8 online free url in huggingface.co:
eeg-fm-masking_mae_rone_L8 is an open source model from GitHub that offers a free installation service, and any user can find eeg-fm-masking_mae_rone_L8 on GitHub to install. At the same time, huggingface.co provides the effect of eeg-fm-masking_mae_rone_L8 install, users can directly use eeg-fm-masking_mae_rone_L8 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
eeg-fm-masking_mae_rone_L8 install url in huggingface.co: