Giter VIP home page Giter VIP logo

mma-dfer's Introduction

PWC PWC

MMA-DFER: MultiModal Adaptation of unimodal models for Dynamic Facial Expression Recognition in-the-wild

This repository provides an official implementation for the paper MMA-DFER: MultiModal Adaptation of unimodal models for Dynamic Facial Expression Recognition in-the-wild.

a

Installation

Please create an environment with Python 3.10 and use requirements file to install the rest of the libraries

pip install -r reqiurements.txt

Data preparation

We provide the codes for DFEW and MAFW datasets, which you would need to download. Then, please refer to DFER-CLIP repository for transforming the annotations that are provided in annotations/ folder to your own paths. To extract faces from MAFW dataset, please refer to data_utils that has an example of face detection pipeline.

You will also need to download pre-trained checkpoints for vision encoder from https://github.com/FuxiVirtualHuman/MAE-Face and for audio encoder from https://github.com/facebookresearch/AudioMAE Please extract them and rename the audio checkpoint to 'audiomae_pretrained.pth'. Both checkpoints are expected to be in root folder.

Running the code

The main script in main.py. You can invoke it through running:

./train_DFEW.sh
./train_MAFW.sh

Evaluation

You can download pre-trained models on DFEW from here and on MAFW from here. Please respect the dataset license when downloading the models! Evaluation can be done as follows:

python evaluate.py --fold $FOLD --checkpoint $CHECKPOINT_PATH --img-size $IMG_SIZE --dataset [MAFW|DFEW]

References

This repository is based on DFER-CLIP https://github.com/zengqunzhao/DFER-CLIP. We also thank the authors of MAE-Face https://github.com/FuxiVirtualHuman/MAE-Face and Audiomae https://github.com/facebookresearch/AudioMAE

Citation

If you use our work, please cite as:

@article{chumachenko2024mma, title={MMA-DFER: MultiModal Adaptation of unimodal models for Dynamic Facial Expression Recognition in-the-wild}, author={Chumachenko, Kateryna and Iosifidis, Alexandros and Gabbouj, Moncef}, journal={arXiv preprint arXiv:2404.09010}, year={2024} }

mma-dfer's People

Contributors

katerynach avatar

Stargazers

 avatar  avatar  avatar Varun Ganjigunte Prakash avatar Yin Chen avatar  avatar

Watchers

 avatar  avatar

mma-dfer's Issues

MAFW dataset results are not achievable

1719969955264
Hello author! When I tried to reproduce the results on the MAFW dataset, I first cut the frames of its video through ffmpeg (the number of frames of each video cut is one more than the number of annotation you provided, but I have no problem to check the quality of the frames), and the audio was also extracted through ffmpeg to produce a .MP3 file, but the results of the training of the model on this dataset do not reach the accuracy (aka WAR). Accuracy (aka WAR), above are the results of my training, and the loss of the test set is back and forth, I think maybe the dataset was processed wrongly at some step? (I have no problem reproducing the results on the DFER dataset after processing the data using this method.) Can you please provide me with a copy of the results for the MAFW dataset? Thank you very much for your reply!

Bad results

Why do I get poor results after running the same script file? And I used the DFEW dataset as well as the WAV audio converted by the software as the input data.

Checkpoints

Hi,

Awesome work.

When do you plan to release the trained model weights?

Thanks

Video inference script

Thanks a lot for this wonderful work! I wanted to test the model on new videos/images. Can you please provide any video inference?

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.