Giter VIP home page Giter VIP logo

me_recognition's Introduction

CapsuleNet for Micro-expression Recognition

Description

This is the source code for the paper CapsuleNet for Micro-expression Recognition joining the second Facial Micro-Expression Grand Challenge for Micro-expression Recognition Task. If you find this code useful, please kindly cite the our paper as follows:

# Bibtex
@INPROCEEDINGS{Quang2019Capsulenet,
  author={N. V. {Quang} and J. {Chun} and T. {Tokuyama}},
  booktitle={2019 14th IEEE International Conference on Automatic Face   Gesture Recognition (FG 2019)}, 
  title={CapsuleNet for Micro-Expression Recognition}, 
  year={2019},
  volume={},
  number={},
  pages={1-7},}




# Plain text
N. V. Quang, J. Chun and T. Tokuyama, "CapsuleNet for Micro-Expression Recognition," 2019 14th IEEE International Conference on Automatic Face & Gesture Recognition (FG 2019), Lille, France, 2019, pp. 1-7, doi: 10.1109/FG.2019.8756544.

The log file result

result_log.csv.

# the reproduced log file result
> `result_log_reproduced.csv`.

Some missing and invalid clips

There are 7 clip files which are missing or invalid.

  • The below clips don't exist in the downloaded datasets
smic/HS_long/SMIC_HS_E/s03/s3_ne_03 not exists
smic/HS_long/SMIC_HS_E/s03/s3_ne_20 not exists
smic/HS_long/SMIC_HS_E/s04/s4_ne_05 not exists
smic/HS_long/SMIC_HS_E/s04/s4_ne_06 not exists
smic/HS_long/SMIC_HS_E/s09/s9_sur_02 not exists
  • The invalid clips in which the apex frames are out of onset-offset duration
samm/28/028_4_1
samm/32/032_3_1

Requirements

  • Python 3
  • PyTorch
  • TorchVision
  • TQDM

Usage

Run the following script to reproduce the result in the log file.

python train_me_loso.py
python get_result_log.py

Project Structure

  • smic_processing.py: Preprocess the SMIC dataset: detect the apex frames.
  • train_me_loso.py: Perform LOSO cross-validation on our proposed model.
  • train_me_loso_baseline.py: Perform LOSO cross-validation on baseline models (ResNet18, VGG11).
  • get_result_log.py: Write the result log file from the pickle file.
  • capsule: The package for building CapsuleNet and Loss.

me_recognition's People

Contributors

akiracv avatar davidnvq avatar aliyatastemirova avatar

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.