Automatic face recognition and analysis using CosFace : large margin cosine loss

This project is an implementation of a face recognition system, using the method of CosFace, according to a paper titled CosFace: Large Margin Cosine Loss for Deep Face Recognition, published by Tencent AI Lab on 3rd April 2018[1]. Copyright is owned by Tencent AI Lab. In recent years, due to the in...

Full description

Bibliographic Details
Main Author: Liu, Ye
Other Authors: Wang Han
Format: Final Year Project (FYP)
Language:English
Published: 2019
Subjects:
Online Access:http://hdl.handle.net/10356/78274
Description
Summary:This project is an implementation of a face recognition system, using the method of CosFace, according to a paper titled CosFace: Large Margin Cosine Loss for Deep Face Recognition, published by Tencent AI Lab on 3rd April 2018[1]. Copyright is owned by Tencent AI Lab. In recent years, due to the introducing of deep CNN, people have made a lot of great achievements on face recognition. The main processes of face recognition are face verification and face feature discrimination. However, the traditional methods of face recognition are all weak in feature discrimination. Thus, to solve this weakness, some new methods have been introduced, such as ArcFace and SphereFace. All of these methods share the same idea: to maximize inter-class variance and minimize intra-class variance. In this report, a completely new method, CosFace, using a new loss function called large margin cosine loss, has been introduced. It reformulated the softmax loss as a cosine loss by L2 normalizing both features and weight vectors to remove radial variations, based on which a cosine margin term is introduced to further maximize the decision margin in the angular space[1]. In this way, the main idea of maximizing inter-class variance and minimizing intra-class variance has been achieved. We also have trained our model with LMCL, and then carried out many experiments on it using some popular datasets in these days, such as TTF and LFW. All these evaluation results have proved that the method of CosFace indeed achieved the state-of-art performance on face recognition.