Skip to content

KamitaniLab/InterIndividualDeepImageReconstruction

Repository files navigation

Inter-individual deep image reconstruction

Demo code for Ho, Horikawa, Majima, and Kamitani (2022), Inter-individual deep image reconstruction.

Requirements

Usage

Training for neural code converter

Run the ridge_ncc/ncc_training.py to train the neural code converters for a pair of source and target subjects.

DNN feature decoding from converted brain activities

Run the ridge_ncc/ncc_predict_feat.py to predict the DNN features from the converted brain activities with the trained neural code converters. Pre-trained DNN feature decoders of the target subjects are necessary to run this script. We used the same methodology in the previous study for DNN feature decoding (Horikawa & Kamitani, 2017, Generic decoding of seen and imagined objects using hierarchical visual features, Nat Commun.). Python code for the DNN feature decoding is available at https://github.com/KamitaniLab/brain-decoding-cookbook-public.

Image reconstruction from decoded CNN features

We used the same methodology in the previous study for image reconstruction (Deep image reconstruction from human brain activity). Please follow its instruction to setup the environment.

Run the image_reconstruction/recon_image_naturalImage_VGG19_DGN_GD.py to reconstruct the natural images shown in the original paper.
Run the image_reconstruction/recon_image_artificialImage_VGG19_NoDGN_LBFGS.py to reconstruct the artificial images shown in the original paper.

Data

The preprocessed data in h5 format could be downloaded from:

https://figshare.com/articles/dataset/Inter-individual_deep_image_reconstruction/17985578

The Raw fMRI data could be downloaded from:

https://openneuro.org/datasets/ds001506/versions/1.3.1
https://openneuro.org/datasets/ds003430/versions/1.1.1
https://openneuro.org/datasets/ds003993

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published