Code for our paper "Cross Attentional Audio-Visual Fusion for Dimensional Emotion Recognition" accepted to IEEE FG 2021. Our paper can be found here.
If you find this code useful for your research, please cite our paper.
@INPROCEEDINGS{9667055,
author={Praveen, R. Gnana and Granger, Eric and Cardinal, Patrick},
booktitle={2021 16th IEEE International Conference on Automatic Face and Gesture Recognition (FG 2021)},
title={Cross Attentional Audio-Visual Fusion for Dimensional Emotion Recognition},
year={2021},
}
This code uses the RECOLA dataset to validate the proposed approach for Dimensional Emotion Recognition. There are three major blocks in this repository to reproduce the results of our paper. This code uses Mixed Precision Training (torch.cuda.amp). The dependencies and packages required to reproduce the environment of this repository can be found in the environment.yml
file.
Create an environment using the environment.yml
file
conda env create -f environment.yml
The pre-trained models of audio backbones are obtained here
The pre-trained models of visual backbones are obtained here
The fusion models trained using our fusion approach can be found here
audiomodel.t7: Visual model trained using RECOLA dataset
visualmodel.t7: Audio model trained using RECOLA dataset
cam_model.pt: Fusion model trained using our approach on the RECOLA dataset
Return to Table of Content Please download the following.
- The dataset can be downloaded here
- You may choose to use OpenFace toolkit to extract the cropped-aligned images.
- The audio files are extracted and segmented to generate the corresponding audio files in alignment with the visual files using mkvextract.
- The annotations provided by the dataset organizers are preprocessed to obtain the labels of aligned audio and visual files.
- After obtaining the preprocessed audio and visual files along with annotations, we can train the model using the proposed fusion approach using the main.py script.
- The results of the proposed model can be reproduced using the trained model.