FacialExpressionRecognition
Fer2013 Facial Expression Recognition Keras
Install / Use
/learn @LamUong/FacialExpressionRecognitionREADME
FacialExpressionRecognition
This is my implementation of a Convolutional Neural Network for Facial Expression Recognition.
I used the fer2013 dataset on Kaggle. The model has an accuracy of ~68% on the test set before using the averaging method and ~69% after applying the averaging method.
Due to limited time, I did not create an emsemble. An emsemble of multiple trained models using different initialization might improve the result a bit more.
To train the model using GPU run THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32 python cnnmodel.py
To test the accuracy after averaging run THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32 python averagingmethod.py
Different packages need to be installed. You can also used pre-installed Keras and Theano AMI on Amazon Web Services. Imutils, OpenCV can be installed by pip and conda. They are used for the averaging method.
An demonstration of the CNN: http://lamuong.com/myapp/
I used C++ library Dlib for face detection.
The Source Code for Django app: https://github.com/LamUong/DjangoWithCNN
I used several ideas in these papers to create my model:
https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/icmi2015_ChaZhang.pdf
http://www.cs.toronto.edu/~tang/papers/dlsvm.pdf
Related Skills
node-connect
346.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
