eeg_fmri-fusion-weights
weights for image reconstruction from brain signals
2 min readupdated
This repository provides pre-trained weights and encoders for the eeg_fmri-fusion project, which reconstructs images seen by a person using electroencephalography (EEG) and functional magnetic resonance imaging (fMRI) data. The kit includes everything needed to run inference without days of GPU training, working alongside the SDXL-Turbo image generator and IP-Adapter. Built on the THINGS-EEG2 and THINGS-fMRI datasets, the model is designed for researchers in brain-computer interfaces and cognitive science.
Key features
- Three encoder sets:
atm_ridge,flora, andflora_moevariants with Mixture of Experts (MoE) support. - Accurate reconstruction: Combining EEG signals with actual fMRI improves quality under noisy data conditions.
- Ready-to-use components: Diffusion priors, pseudo-fMRI mappers, and integration weights.
- Scientific foundation: Trained on standardized THINGS data for semantic similarity evaluation (CLIP).
What you can do
- Run inference scripts to reconstruct images from subjects' EEG data.
- Test the combined use of EEG signals and actual fMRI to boost accuracy.
- Compare the performance of
atm_ridgeandflora_moeencoders on test splits. - Use the weights in academic and non-commercial visual perception research.
Example
git clone [https://github.com/kim3386/eeg_fmri-fusion.git](https://github.com/kim3386/eeg_fmri-fusion.git) && cd eeg_fmri-fusion
mamba env create -f environment.yml && conda activate eeg_fmri_fusion
python infer_eeg_to_image.py --run eeg_sub-01_atm --demo --r 4 --out ../results/eeg --no_imagesRead more
DetailsBenchmarks: CLIP 2-way identification ranging from 0.602 to 0.797 depending on the number of trials (r).
Requirements: The repository requires downloading the THINGS dataset (~100 GB) and weights (5.3 GB).
License: CC BY-NC 4.0 (for non-commercial research only).
Limitations: The models are tied to specific subjects from the dataset and do not transfer adaptation without fine-tuning.










Comments