Skip to content

Use deep neural networks to synthesize the Neuroscore for evaluating Generative Adversarial Networks

Notifications You must be signed in to change notification settings

villawang/Neuro-AI-Interface

Repository files navigation

Neuro-AI-Interface

Use deep neural networks to synthesize the Neuroscore for evaluating Generative Adversarial Networks. Please refer details in our paper "Synthetic-Neuroscore: Using a neuro-AI interface for evaluating generative adversarial networks" and "Use of Neural Signals to Evaluate the Quality of Generative Adversarial Network Performance in Facial Image Generation"

If you find this useful in your research, please consider citing:

  @article{wang2020synthetic,
    title={Synthetic-Neuroscore: Using a neuro-AI interface for evaluating generative adversarial networks},
    author={Wang, Zhengwei and She, Qi and Smeaton, Alan F and Ward, Tomas E and Healy, Graham},
    journal={Neurocomputing},
    year={2020},
    publisher={Elsevier}
  }
  
  @article{wang2018use,
  title={Use of Neural Signals to Evaluate the Quality of Generative Adversarial Network Performance in Facial Image Generation},
  author={Wang, Zhengwei and Healy, Graham and Smeaton, Alan F and Ward, Tomas E},
  DOI = {https://doi.org/10.1007/s12559-019-09670-y},
  journal={Cognitive Computation},
  year={2019},
  publisher={Springer}
  }

Requirements

This is tensorflow version. A pytorch version might be released in the future if there are lots of demands for that.

python3
tensorflow 1.12.0
tqdm
numpy
sklearn
pillow
scipy

EEG data, GANs images and pretrained model

------------------------------------------------------------------------------------------------------------
-----------------------The followings are required for training the model-----------------------------------
------------------------------------------------------------------------------------------------------------
The beamformed EEG data has been stored in the dropbox link: https://www.dropbox.com/s/4up3wqskbkgrxeo/image_EEG_data.zip?dl=0

GAN images used for training: https://www.dropbox.com/s/3s1bgjf8o578llr/JANUS_imgs.zip?dl=0

Pre-trained model for initialization (Inception V3 and mobilenet_v2_1.4_224 are used in this work): https://www.dropbox.com/sh/8hhcgbmdqa2206j/AAC9L1Cpbzggk6te7F0tYMbaa?dl=0

------------------------------------------------------------------------------------------------------------
-----------------------This is our trained model, you do not need these to train the model------------------
------------------------------------------------------------------------------------------------------------
Model trained by using EEG and without EEG: https://www.dropbox.com/sh/3q7hapmklp5rxvv/AAC6A-Hjt5kp8_PAt6Jo9ipsa?dl=0

Usage

Download the pre-trained model as same directory as the code here. Download the GAN images and replace the img_dir in the code. Download the EEG data and replace EEG_path in the code. model_eeg_single_trial.ipynb demonstrates the model trained using EEG signal and model_single_trial.ipynb demonstrates training without using EEG signals. see_p3_dist_cross_sub.ipynb visualizes the P3 (recorded EEG signals) for different GAN images.

About

Use deep neural networks to synthesize the Neuroscore for evaluating Generative Adversarial Networks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published