Skip to content

99ninew/ReMindAR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReMindAR: Reconstruct Mind Autoregressively

In this work, we propose the first autoregressive (AR)-based framework for visual reconstruction from fMRI signals, built upon the Visual Autoregressive Model (VAR).

For technical details and further analysis, please see the report ReMindAR_report.pdf.

👣What's new?

First autoregressive (AR)-based framework:

The model first decodes fMRI voxel data into multi-scale latent features using an MLP and upsampling modules. These features are then used to guide a visual autoregressive (VAR) model, which progressively predicts finer-scale representations and reconstructs the final image.

Overview of the proposed AR-based fMRI-to-image reconstruction pipeline

pipeline

Reconstruction performance:

Results generated in the VAR pipeline.

reconstructions_img2img0.0

Results generated in the joint pipeline (VAR pipeline and CLIP pipeline).

reconstructions_img2img0.85

Quantitative performance:

Comparison of ReMindAR’s reconstruction performance on perceptual and semantic evaluation metrics against other models.

quantitative comparison

Installation instructions

  1. Agree to the Natural Scenes Dataset's Terms and Conditions and fill out the NSD Data Access form
  2. Download this repository: git clone https://github.com/99ninew/ReMindAR.git
  3. Run set.up to create a conda environment that contains all the necessary packages required to run our codes. Then, activate the environment with conda activate remindar
cd src
. setup.sh

General information

This repository contains Python files and Jupytor notebooks for

  1. Defining the VAR model (src/VAR)
  2. Training ReMindAR's VAR pipeline and obtaining initial reconstructions from brain activity (src/train_with_var.py)
  3. Training ReMindAR's CLIP pipeline (src/train_with_clip.py)
  4. Reconstructing images from fMRI data using the trained model (src/Reconstructions.ipynb)
  5. Evaluating reconstructions against the ground truth stimuli using various low-level and high-level metrics (src/Reconstruction_Metrics.ipynb)

Besides, all the above Jupytor notebooks have corresponding python files.

Honor Code

We refer to the high-level pipeline training and evaluation methods outlined in the MindEye Github repository.

About

Reconstruct Mind Autoregressively

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors