Skip to content

[NeurIPS2022] Mind Reader: Reconstructing complex images from brain activities

Notifications You must be signed in to change notification settings

sklin93/mind-reader

Repository files navigation

mind-reader

[NeurIPS2022] Mind Reader: Reconstructing complex images from brain activities [Mobile friendly version] [Slides]

TL;DR

We include additional text modality for reconstructing image stimuli from fMRI activities. Pretrained CLIP embedding space and a conditional generative model are utilized to counter data scarcity.

Pipeline overview

pipeline

Code

Mapping model is defined as fmri_clip_res in fmri_clip.py

Conditional generative model is modified in StyleGAN2 folder, main files changed: train.py, files under training folder, and files in torch_utils/ops because of compatibility issues (see here).

To use the trained models for generation, see this notebook.

We used wandb for hyperparameter tracking & tuning.

Sample results

For each two rows: top is ground truth, bottom is our reconstruction.

5Tmh-2no44bjg34Iid9lR47aZDrZuFSuRmeiSLLIu9ybO_Td0LIUFz1yH14Y1CPwA2_gsJCq1J-QVT88rNl8XTQkQxH_J8CvfcWILZwEtX1w67Yc_VdNSsi4ZTJL

vCrha16VfRmH5D3-DN-iQKXJsHMI15PTd97mo1yKXAe5BD68-I5f-sRhlULI-TZo1EEpRr8PhdCQWCTBLkX7pxDVUX8BI-Ev2uh0NB1UUmELosad5ReuxibuFCZy

nVpS3he8E62YBfgU-XEHHqc2hWyIZ8siAW9DkPkMUSpfCzJaPZ_uCVJ_pZMtRUxswnhJsu-4WTOrLbmybfr9j2ceiEbIp4pn2WLOuDXZqdI-uxIdaoRHUwgLLknE

About

[NeurIPS2022] Mind Reader: Reconstructing complex images from brain activities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published