Official Implementation of MindGPT in PyTorch
-
2024-07-11
Codes release.
-
2023-09-28
Preprint release. Codes will be released soon!
-
pip install -r requirements.txt
-
Download DIR dataset (Kamitani Lab) and ImageNet dataset.
-
Extract CLIP visual representations by running
feature_extract.py
and use SMALLCAP to generate pseudo labels (format seecaption/example.json
). -
Change Paths in
data/configure.py
to match your file locations.
Hyper-parameters can be changed with command line arguments
python brain2text_train.py --n_epochs 20 --batch_size 128
python brain2text_infer.py
We thank Kamitani Lab for making their raw and pre-processed data public. Our MindGPT implementation is based on the SMALLCAP. We thank these authors for making their codes and checkpoints publicly available!
@article{chen2023mindgpt,
title={MindGPT: Interpreting What You See with Non-invasive Brain Recordings},
author={Jiaxuan Chen and Yu Qi and Yueming Wang and Gang Pan},
year={2023},
journal={arXiv preprint arXiv:2309.15729},
}