All Projects → moli232777144 → small_model_face_recognition

moli232777144 / small_model_face_recognition

Licence: other
针对移动端的人脸识别需求,训练测试一些相关的小模型实验。

Programming Languages

matlab
3953 projects
Batchfile
5799 projects

Projects that are alternatives of or similar to small model face recognition

Php Opencv Examples
Tutorial for computer vision and machine learning in PHP 7/8 by opencv (installation + examples + documentation)
Stars: ✭ 333 (+1133.33%)
Mutual labels:  recognition, face
Mtcnn
face detection and alignment with mtcnn
Stars: ✭ 66 (+144.44%)
Mutual labels:  recognition, face
Imagedetect
✂️ Detect and crop faces, barcodes and texts in image with iOS 11 Vision api.
Stars: ✭ 286 (+959.26%)
Mutual labels:  recognition, face
Face recognition
Face recognition docker image to provide a web service which is able to register and recognize faces
Stars: ✭ 74 (+174.07%)
Mutual labels:  recognition, face
Fbrecog
An unofficial python wrapper for the Facebook face recognition endpoint
Stars: ✭ 184 (+581.48%)
Mutual labels:  recognition, face
FaceIDLight
A lightweight face-recognition toolbox and pipeline based on tensorflow-lite
Stars: ✭ 17 (-37.04%)
Mutual labels:  recognition, face
React Facial Feature Tracker
React Component for Facial Feature Recognition based on the clmtracker
Stars: ✭ 13 (-51.85%)
Mutual labels:  recognition, face
Tf Siamesenet
Face recognition based on SiameseNet
Stars: ✭ 87 (+222.22%)
Mutual labels:  recognition, face
timeline
Timeline - A photo organizer
Stars: ✭ 39 (+44.44%)
Mutual labels:  recognition, face
Php Opencv
php wrapper for opencv
Stars: ✭ 194 (+618.52%)
Mutual labels:  recognition, face
facematch
Facematch is a tool to verifies if two photos contain the same person.
Stars: ✭ 62 (+129.63%)
Mutual labels:  recognition, face
Nearest-Celebrity-Face
Tensorflow Implementation of FaceNet: A Unified Embedding for Face Recognition and Clustering to find the celebrity whose face matches the closest to yours.
Stars: ✭ 30 (+11.11%)
Mutual labels:  face
flagpack
A lightweight flag icon toolkit for the web.
Stars: ✭ 51 (+88.89%)
Mutual labels:  small
VideoRecognitionTracking
Real time object or face detection recognition and tracking in video. The Full end-to-end project.
Stars: ✭ 36 (+33.33%)
Mutual labels:  recognition
pixie
Tiny template functions.
Stars: ✭ 14 (-48.15%)
Mutual labels:  small
visage
Add virtual makeup to picture of a face.
Stars: ✭ 97 (+259.26%)
Mutual labels:  face
brfv4 android examples
Android Studio project (Java)
Stars: ✭ 43 (+59.26%)
Mutual labels:  face
Chords.py
Neural networks applied in recognizing guitar chords using python, AutoML.NET with C# and .NET Core
Stars: ✭ 24 (-11.11%)
Mutual labels:  recognition
SRLCD
fast loop closure detection (online visual place recognition) via saliency re-identification IROS 2020
Stars: ✭ 78 (+188.89%)
Mutual labels:  recognition
interfaces
A diverse set of royalty-free user avatars to be used for marketing graphics and application screenshots.
Stars: ✭ 50 (+85.19%)
Mutual labels:  face

small_model_face_recognition

针对移动端的人脸识别需求,训练测试一些的小模型相关实验。

目录

  1. 前言
  2. 环境安装
  3. 数据预处理
  4. 模型训练
  5. 模型测试
  6. 评测结果
  7. 相关参考

前言

当前效果良好的人脸识别相关模型整体大小基本偏大,占用内存大,计算费时,并不太适合嵌入式移动端的应用,本项目主要基于改进lightcnn模型,训练适用于移动端的人脸识别小模型;

环境安装

  1. 下载相关代码,并更新子模块;

git clone https://github.com/moli232777144/small_model_face_recognition.git

git submodule update --init

  1. 安装happynear的caffe-windows,编译GPU版本,并配置matlab环境;

数据预处理

note: 切换preprocess目录下

  1. 下载 CAISA-WebFace和LFW数据库,放至data目录;

  2. 运行code/face_detect_demo.m,提取人脸相关信息,result下将会生成dataList.mat文件;

  3. 运行code/face_align_demo.m,data目录下将会生成CASIA-WebFace-wx-128X128和lfw-wx-128X128的对齐图像;

模型训练

note: 切换train目录下

  1. 复制数据预处理的CASIA-WebFace-wx-128X128目录到data目录下;

  2. 运行code/get_list.m,获取CASIA-WebFace-wx-128X128.txt;

  3. 运行code/lightcnn_small_train.bat;

  4. 降低学习率等,调参;

模型测试

note: 切换test目录下

  1. 复制数据预处理的lfw-wx-128X128目录到data目录下;

  2. 下载LFW(view 2)的测试pairs.txt至data目录下;

  3. 运行code/evaluation.m,获取识别率;

评测结果

  1. 初调loss可降低至2.6左右,LFW识别率98.33%;

  2. 安卓端搭ncnn框架评测,实时速度可达30ms以下,具体数据如下;

M6Note:/data/local/tmp/bin $ ./benchncnn 8 8 0
loop_count = 8
num_threads = 8
powersave = 0
      small_face  min =   22.55  max =   24.80  avg =   23.66
  LightenedCNN_A  min =  218.03  max =  259.79  avg =  227.34
  LightenedCNN_B  min =   77.43  max =   83.81  avg =   79.04
      squeezenet  min =   44.52  max =   69.33  avg =   49.68
       mobilenet  min =   74.12  max =  109.70  avg =   79.87
    mobilenet_v2  min =   86.45  max =  111.27  avg =   91.01
      shufflenet  min =   28.59  max =   30.10  avg =   28.93
       googlenet  min =  139.83  max =  184.98  avg =  154.34
        resnet18  min =  183.14  max =  203.49  avg =  190.05
         alexnet  min =  195.94  max =  219.97  avg =  205.58

相关参考

lightcnn

sphereface

NormFace

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].