An interactive Colab tool for fMRI-to-image decoding using real 7T neuroimaging data.
Given an input image, the pipeline:
- Encodes it into a CLIP ViT-L/14 embedding.
- Predicts the whole-cortex fMRI response (~39k vertices, both hemispheres) via ridge regression trained on real trials.
- Decodes the predicted fMRI back into CLIP space.
- Renders an approximate retinotopic visual-field map of predicted activation.
- Retrieves the top-5 most similar training images by decoded CLIP similarity.
- Generates a caption from the decoded representation (BLIP).
- Synthesizes an audio chord from the decoded embedding.
Optionally, GPU image reconstruction via Kandinsky 2.2 unCLIP (needs an A100/T4).
- Natural Scenes Dataset (NSD), subject 01, in Algonauts 2023 Challenge format (7T fMRI).
- NSD: https://naturalscenesdataset.org/ · Algonauts 2023: http://algonauts.csail.mit.edu/
- Stimulus features: CLIP ViT-L/14; captioning: BLIP; reconstruction: Kandinsky 2.2 unCLIP.
MIT — see LICENSE.