GithubHelp home page GithubHelp logo

githubpgq / bravl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from changdedu/bravl

0.0 0.0 0.0 1.15 MB

Code and Data for "Decoding Visual Neural Representations by Multimodal Learning of Brain-Visual-Linguistic Features"

License: MIT License

Shell 2.58% Python 97.42%

bravl's Introduction

BraVL

This is the official code for the paper "Decoding Visual Neural Representations by Multimodal Learning of Brain-Visual-Linguistic Features, IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI 2023)" (https://ieeexplore.ieee.org/document/10089190).

  • Authors: Changde Du, Kaicheng Fu, Jinpeng Li, Huiguang He

Dual coding of knowledge Illustration of the trimodal data Brain-Image-Text joint representation learning The voxel stability maps in the visual cortex

Preliminaries

This code was developed and tested with:

  • Python version 3.7.0
  • PyTorch version 1.9.0
  • CUDA version 11.2
  • The conda environment defined in environment.yml

First, set up the conda enviroment as follows:

conda env create -f environment.yml  # create conda env
conda activate BraVL                # activate conda env

Download data

Second, download the pre-processed trimodal data from https://figshare.com/articles/dataset/BraVL/17024591, unzip them, and put them at "./data" directory:

unzip DIR-Wiki.zip -d BraVL_fMRI/data/
unzip GOD-Wiki.zip -d BraVL_fMRI/data/
unzip ThingsEEG-Text.zip -d BraVL_EEG/data/

Note that, the raw (image and brain fMRI/EEG) data are not included here because they are too large. Raw ImageNet images and brain fMRI data can be downloaded from the corresponding official site. We provide python scripts for feature extraction and data preprocessing.

Experiments

Experiments can be started by running the job_trimodal script.

running BraVL on the Image-Text-fMRI datasets

cd BraVL_fMRI
bash job_trimodal

running BraVL on the Image-Text-EEG datasets

cd BraVL_EEG
bash job_trimodal

Cite

Please cite our paper if you use this code in your own work:

@article{du2023decoding,
  title={Decoding Visual Neural Representations by Multimodal Learning of Brain-Visual-Linguistic Features},
  author={Du, Changde and Fu, Kaicheng and Li, Jinpeng and He, Huiguang},
  journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
  year={2023},
  publisher={IEEE}
}

If you have any questions about the code or the paper, we are happy to help!

bravl's People

Contributors

changdedu avatar cvsubmittemp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.