All Projects → gehaocool → Combinedmargin Caffe

gehaocool / Combinedmargin Caffe

caffe implementation of insightface's combined margin method

Projects that are alternatives of or similar to Combinedmargin Caffe

Face Identification With Cnn Triplet Loss
Face identification with cnn+triplet-loss written by Keras.
Stars: ✭ 45 (-48.28%)
Mutual labels:  face-recognition
Boss Detector
Change monitor screen when your boss is coming towards you!
Stars: ✭ 63 (-27.59%)
Mutual labels:  face-recognition
Tensorflow Implementation Of Lcnn
A Tensorflow implementation of "A Light CNN for Deep Face Representation with Noisy Labels"
Stars: ✭ 74 (-14.94%)
Mutual labels:  face-recognition
Facerecognition Gui App
A very Simple GUI APP for Face Detection and Recognition
Stars: ✭ 50 (-42.53%)
Mutual labels:  face-recognition
Linux face unlock
A face authentication system for Ubuntu that works while logging in and running "sudo" commands with a friendly CLI to operate it.
Stars: ✭ 55 (-36.78%)
Mutual labels:  face-recognition
Face Api
JavaScript module for face detection and face recognition Using Tensorflow/JS
Stars: ✭ 67 (-22.99%)
Mutual labels:  face-recognition
Facedataset
制作亚洲人脸数据集
Stars: ✭ 42 (-51.72%)
Mutual labels:  face-recognition
Insightface
State-of-the-art 2D and 3D Face Analysis Project
Stars: ✭ 10,886 (+12412.64%)
Mutual labels:  face-recognition
Face Recognition
A framework for creating and using a Face Recognition system.
Stars: ✭ 60 (-31.03%)
Mutual labels:  face-recognition
Deepface
A Lightweight Deep Face Recognition and Facial Attribute Analysis (Age, Gender, Emotion and Race) Framework for Python
Stars: ✭ 1,150 (+1221.84%)
Mutual labels:  face-recognition
Massface
MassFace: an effecient implementation using triplet loss for face recognition
Stars: ✭ 53 (-39.08%)
Mutual labels:  face-recognition
Facenet Face Recognition
This is the research product of the thesis manifold Learning of Latent Space Vectors in GAN for Image Synthesis. This has an application to the research, name a facial recognition system. The application was developed by consulting the FaceNet model.
Stars: ✭ 54 (-37.93%)
Mutual labels:  face-recognition
Face Recognition Cpp
Real Time Face Recognition Detector. Over 30FPS on CPU!
Stars: ✭ 68 (-21.84%)
Mutual labels:  face-recognition
Opencv Face Filters
Snapchat-like Face Filters in OpenCV
Stars: ✭ 51 (-41.38%)
Mutual labels:  face-recognition
Low Face Mode
Dim and brighten the screen based on whether or not you are present! OpenCV detects face with webcam and dims screen if not present.
Stars: ✭ 75 (-13.79%)
Mutual labels:  face-recognition
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
Stars: ✭ 1,013 (+1064.37%)
Mutual labels:  face-recognition
Awesome machine learning solutions
A curated list of repositories for my book Machine Learning Solutions.
Stars: ✭ 65 (-25.29%)
Mutual labels:  face-recognition
Python Tensorflow Face V2.0
基于tensorflow的人脸识别
Stars: ✭ 84 (-3.45%)
Mutual labels:  face-recognition
Ai Reading Materials
Some of the ML and DL related reading materials, research papers that I've read
Stars: ✭ 79 (-9.2%)
Mutual labels:  face-recognition
Celebamask Hq
A large-scale face dataset for face parsing, recognition, generation and editing.
Stars: ✭ 1,156 (+1228.74%)
Mutual labels:  face-recognition

Combined Margin (caffe)

中文版本README

Introduction

In this repo, a caffe implementation of Combined Margin is introduced.

This repo was inspired by insightface and arcface-caffe

Combined Margin was proposed by insightface as the improvement of Sphereface, AMSoftmax(CosineFace), and Additive Angular Margin which was proposed by insightface before.

This implementation follows the method in insightface, and do some modification. Mainly adding bounds for the logits after adding margin, so the logits value of ground truth won't get bigger after adding margin, instead of getting smaller which is our original purpose. And also add bound for the gradient.

Note that the combined margin in this implementation is rather hard without any tricks to help the converge while training.

According to insightface's experiments, the validation results of Combined Margin is better than the other methods mentioned above. see Verification Results On Combined Margin.

If you want to try other methods, please refer to insightface, arcface-caffe and AMSoftmax(CosineFace)

Installation

  1. Merge toadd.proto with caffe's caffe.proto, follow the instructions in toadd.proto.
  2. Place all the .hpp files in $CAFFE_ROOT/include/caffe/layers/, and all the .cpp and .cu files in $CAFFE_ROOT/src/caffe/layers/. Replace the original files if necessary.
  3. Go to $CAFFE_ROOT and make all. Maybe you need to do make clean first.
  4. Now you can use Combined Margin Layer in your caffe training. Here's an example.prototxt which is modified from AMSoftmax's prototxt. You can just change the LabelSpecificAddLayer into CombinedMarginLayer, and don't forget to change the layer parameters.

If you have any question, feel free to open an issue.

Anyone use the code, please site the original papers

update 2018-11-11 a resnet-36 model

Here's one ResNet-36 model (password: 6sgx), trained on ms-celeb-1m and asian-celeb provided by Deepglint. This model can get 99.75% on LFW. And on BLUFR, it gets 99.69% [email protected]%, 99.53% @FAR0.01%, 99.42% [email protected]% . I didn't do other test.

update 2018-12-10 add training log

In res36-training-config folder is the training log, solver.prototxt and train.prototxt of ResNet-36 combined margin loss model training(password: y672). The training data is Trillionpairs by Deepglint. All faces are aligned to 112x96. This dataset provides 5-landmark information, so we don't need to do the detection and landmarks location.

update 2019-06-19 upload resnet-36 model to Google Drive

Google Drive URL

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].