MIT License

项目介绍

WuJie1010/Facial-Expression-Recognition.Pytorch 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 2.0k 个 Star、559 次 Fork。

仓库全名
WuJie1010/Facial-Expression-Recognition.Pytorch
开源许可证
MIT License
Star 数
2.0k
Fork 数
559
未关闭 Issue
40

README 摘要

Facial-Expression-Recognition.Pytorch A CNN based pytorch implementation on facial expression recognition (FER2013 and CK+), achieving 73.112% (state-of-the-art) in FER2013 and 94.64% in CK+ dataset Demos ## Dependencies ## Python 2.7 Pytorch >=0.2.0 h5py (Preprocessing) sklearn (plot confusion matrix) Visualize for a test image by a pre-trained model ## Firstly, download the pre-trained model from…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Facial-Expression-Recognition.Pytorch 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 2.0k 个 Star。

Facial-Expression-Recognition.Pytorch 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 Facial-Expression-Recognition.Pytorch 的源码?

可以直接克隆仓库:git clone https://github.com/WuJie1010/Facial-Expression-Recognition.Pytorch.git,默认分支为 master;安装与运行步骤见仓库 README。

Facial-Expression-Recognition.Pytorch 最近还在维护吗?

仓库最近一次更新为 2021年6月14日,当前有 40 个未关闭 Issue;Star 数为 2.0k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

A CNN based pytorch implementation on facial expression recognition (FER2013 and CK+), achieving 73.112% (state-of-the-art) in FER2013 and 94.64% in CK+ dataset

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
3127
价值分
1356
活跃状态
活跃

语言占比

Python

贡献者

README

Facial-Expression-Recognition.Pytorch

A CNN based pytorch implementation on facial expression recognition (FER2013 and CK+), achieving 73.112% (state-of-the-art) in FER2013 and 94.64% in CK+ dataset

Demos

Image text Image text

Dependencies

  • Python 2.7
  • Pytorch >=0.2.0
  • h5py (Preprocessing)
  • sklearn (plot confusion matrix)

Visualize for a test image by a pre-trained model

FER2013 Dataset

Preprocessing Fer2013

  • first download the dataset(fer2013.csv) then put it in the “data” folder, then
  • python preprocess_fer2013.py

Train and Eval model

  • python mainpro_FER.py --model VGG19 --bs 128 --lr 0.01

plot confusion matrix

  • python plot_fer2013_confusion_matrix.py --model VGG19 --split PrivateTest

fer2013 Accurary

  • Model: VGG19 ; PublicTest_acc: 71.496% ; PrivateTest_acc:73.112%
  • Model: Resnet18 ; PublicTest_acc: 71.190% ; PrivateTest_acc:72.973%

CK+ Dataset

  • The CK+ dataset is an extension of the CK dataset. It contains 327 labeled facial videos, We extracted the last three frames from each sequence in the CK+ dataset, which contains a total of 981 facial expressions. we use 10-fold Cross validation in the experiment.

Train and Eval model for a fold

  • python mainpro_CK+.py --model VGG19 --bs 128 --lr 0.01 --fold 1

Train and Eval model for all 10 fold

  • python k_fold_train.py

plot confusion matrix for all fold

  • python plot_CK+_confusion_matrix.py --model VGG19

CK+ Accurary

  • Model: VGG19 ; Test_acc: 94.646%
  • Model: Resnet18 ; Test_acc: 94.040%

评论

暂无评论