Prompting Visual-Language Models for Dynamic Facial Expression Recognition

Zengqun Zhao, Ioannis Patras
8/25/2023
80 citations
cs.CV

Official code: zengqunzhao/DFER-CLIP (145 stars, Python, MIT, last commit 2024-11-21).

Abstract

This paper presents a novel visual-language model called DFER-CLIP, which is based on the CLIP model and designed for in-the-wild Dynamic Facial Expression Recognition (DFER). Specifically, the proposed DFER-CLIP consists of a visual part and a textual part.

Show full abstract

For the visual part, based on the CLIP image encoder, a temporal model consisting of several Transformer encoders is introduced for extracting temporal facial expression features, and the final feature embedding is obtained as a learnable "class" token. For the textual part, we use as inputs textual descriptions of the facial behaviour that is related to the classes (facial expressions) that we are interested in recognising -- those descriptions are generated using large language models, like ChatGPT. This, in contrast to works that use only the class names and more accurately captures the relationship between them. Alongside the textual description, we introduce a learnable token which helps the model learn relevant context information for each expression during training. Extensive experiments demonstrate the effectiveness of the proposed method and show that our DFER-CLIP also achieves state-of-the-art results compared with the current supervised DFER methods on the DFEW, FERV39k, and MAFW benchmarks. Code is publicly available at https://github.com/zengqunzhao/DFER-CLIP.

View on arXivView PDF

Code Implementations(1)

MIT

[BMVC'23] Prompting Visual-Language Models for Dynamic Facial Expression Recognition

14512Python, ShellJun 8, 20232 years agoMIT
facial-expression-recognitionvision-language-model

Similar Papers

Cite this paper

@article{zhao2023prompting,
  title  = {Prompting Visual-Language Models for Dynamic Facial Expression Recognition},
  author = {Zengqun Zhao and Ioannis Patras},
  year   = {2023},
  eprint = {2308.13382},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.13382v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.13382.svg)](https://codeofpaper.com/paper/2308.13382)

Discussion