Skip to content

SSYSteve/Learning-Graph-Representation-of-Person-specific-Cognitive-Processes-from-Audio-visual-Behaviours-fo

Repository files navigation

#PSSGR(Person-Specific Search and Graph Representation) This is the official code of the ACM MM 2021 oral paper:

Shao, Zilong, Siyang Song, Shashank Jaiswal, Linlin Shen, Michel Valstar, and Hatice Gunes. "Personality Recognition by Modelling Person-specific Cognitive Processes using Graph Representation." In Proceedings of the 29th ACM International Conference on Multimedia, pp. 357-366. 2021.

Song, Siyang, Zilong Shao, Shashank Jaiswal, Linlin Shen, Michel Valstar, and Hatice Gunes. "Learning Graph Representation of Person-specific Cognitive Processes from Audio-visual Behaviours for Automatic Personality Recognition." arXiv preprint arXiv:2110.13570 (2021).

Hypothesis

alt text

Approach overview

alt text

alt text

alt text

Code

Please also download the two folders and put them in the main directory before you runing the code: https://drive.google.com/drive/folders/1QR6vtHabJuHfGOpTMjvc8Z1bFenbfQtj?usp=sharing

##Dependencies: Please install the following libraries (Using conda is highly recommended)
ffmpeg
python_speech_features
scipy
pytorch-gpu
torchvision
tqdm
h5py
tensorboard

##Preparing your data

    1. Please use OpenFace to process all pair of video data, where aligned faces are produced and the facial landmarks are saved in the CSV files.

The example of the obtained data: :

|-root
|   |-talk1
|   |   |-Expert_video_aligned
|   |   |-Novice_video_aligned
|   |   |-Expert_video.csv
|   |   |-Novice_video.csv
|   |-talk2
|   |   |-Expert_video_aligned
|   |   |-Novice_video_aligned
|   |   |-Expert_video.csv
|   |   |-Novice_video.csv
|   |-...
|   |-...
|   |-...
|   |-talkn
|   |   |-Expert_video_aligned
|   |   |-Novice_video_aligned
|   |   |-Expert_video.csv
|   |   |-Novice_video.csv
    1. Once you prepared your data, please use the following command to align video-audio signals and package them in pickle data structure:

      python process_noxi_data.py --vidio_dir ‘the folder contains soruce audio files’ --openface_dir ‘openface folder’ --save_dir ‘audio feature folder’

##Training Supernet Please run the following command line: python train_supernet.py --ID XX --gpu_id XXX --data XXX
--ID: 'the ID of the video ID'
--gpu_id: ’GPU ID‘
--data: ’The folder containing the prepared training data ‘

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages