Giter Club home page Giter Club logo

facerwkv's Introduction

Facial Expression Recognition with RWKV Architecture

Introduction

This repository contains an implementation for facial expression recognition using RWKV architecture on the CAES-R dataset. Our approach focuses on utilizing RWKV mechanisms for sequence processing, providing an innovative solution for facial expression analysis. The repository is part of our term project for COMP4471 at HKUST.

Authors:

  • Lukas Vierling
  • Christian Alexander Pesch
  • Oscar R. Cortina

Overview

Facial expression recognition involves deciphering emotions from facial features. In this project, we introduce a unique architectural design inspired by ViT (Vision Transformer) but employing RWKV mechanisms to effectively process sequences of input data.

Architecture

Architecture

Model:

Our model solely relies on RWKV architecture for sequence processing, showcasing its capability in facial expression recognition. We emphasize the effectiveness of RWKV mechanisms without relying on additional architectures like ResNet.

Comparisons:

We compare our model against the current State-of-the-Art (SOTA) method and a transformer-based version. Through an ablation study, we demonstrate the prowess of RWKV architecture in achieving competitive performance.

Repository Structure

The repository structure is organized as follows:

  • data : Contains the CAES-R dataset.
  • runs : Contains tensorboard logs.
  • runs : Contains saved checkpoints.
  • utils.py : Contains a custom learning rate scheduler.
  • models/FaceRWKV: Contains the implementation of our model.
  • models/RWKV: Contains the code from the RWKV GitHub repository.
  • models/Preprocessing: Contains code to create a sequence from a picture, uses ResNet optional.
  • config: Contains the configuration files for training.
  • Dataset: Contains the custom CAES-R dataset.
  • train.py: Script for training the models. Usage: python train.py --config <path to config>

Getting Started

  1. Clone this repository.
  2. Install the required dependencies specified in requirements.txt.
  3. Prepare the CAES-R dataset or specify the dataset path in the configuration file.
  4. Configure the training parameters in `config/config.yml.
  5. Run the training script using python train.py --config config/config.yml.

Results

Our results are summarized in the following table:

Architecture

facerwkv's People

Contributors

lukasvierling avatar talented-q avatar thewrecktum avatar corcasta avatar jorgecepeda avatar

Stargazers

 avatar Bingchen Zhao avatar K. S. Ernest (iFire) Lee avatar Johanes Setiawan avatar Umut Hope YILDIRIM avatar OpenMOSE avatar  avatar  avatar  avatar Houston Sasseen avatar  avatar  avatar VatsaDev avatar 顾真牛 avatar  avatar percent73 avatar

Watchers

Páll Haraldsson avatar  avatar  avatar  avatar

Forkers

habibzadeh

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.