All Projects → happynear → Amsoftmax

happynear / Amsoftmax

Licence: mit
A simple yet effective loss function for face verification.

Programming Languages

matlab
3953 projects

Projects that are alternatives of or similar to Amsoftmax

Angular Penalty Softmax Losses Pytorch
Angular penalty loss functions in Pytorch (ArcFace, SphereFace, Additive Margin, CosFace)
Stars: ✭ 236 (-46.73%)
Mutual labels:  face-recognition, metric-learning
Imdb Face
A new large-scale noise-controlled face recognition dataset.
Stars: ✭ 399 (-9.93%)
Mutual labels:  face-recognition
Largemargin softmax loss
Implementation for <Large-Margin Softmax Loss for Convolutional Neural Networks> in ICML'16.
Stars: ✭ 319 (-27.99%)
Mutual labels:  face-recognition
Libfaceid
libfaceid is a research framework for prototyping of face recognition solutions. It seamlessly integrates multiple detection, recognition and liveness models w/ speech synthesis and speech recognition.
Stars: ✭ 354 (-20.09%)
Mutual labels:  face-recognition
Face recognition
🍎 My own face recognition with deep neural networks.
Stars: ✭ 328 (-25.96%)
Mutual labels:  face-recognition
Curated List Of Awesome 3d Morphable Model Software And Data
The idea of this list is to collect shared data and algorithms around 3D Morphable Models. You are invited to contribute to this list by adding a pull request. The original list arised from the Dagstuhl seminar on 3D Morphable Models https://www.dagstuhl.de/19102 in March 2019.
Stars: ✭ 375 (-15.35%)
Mutual labels:  face-recognition
High Performance Face Recognition
🔥🔥Several High-Performance Models for Unconstrained/Large-Scale/Low-Shot Face Recognition🔥🔥
Stars: ✭ 309 (-30.25%)
Mutual labels:  face-recognition
Tp Gan
Official TP-GAN Tensorflow implementation for paper "Beyond Face Rotation: Global and Local Perception GAN for Photorealistic and Identity Preserving Frontal View Synthesis"
Stars: ✭ 412 (-7%)
Mutual labels:  face-recognition
Face specific augm
Face Renderer to perform Domain (Face) Specific Data Augmentation
Stars: ✭ 398 (-10.16%)
Mutual labels:  face-recognition
Hardnet
Hardnet descriptor model - "Working hard to know your neighbor's margins: Local descriptor learning loss"
Stars: ✭ 350 (-20.99%)
Mutual labels:  metric-learning
Ganfit
Project Page of 'GANFIT: Generative Adversarial Network Fitting for High Fidelity 3D Face Reconstruction' [CVPR2019]
Stars: ✭ 350 (-20.99%)
Mutual labels:  face-recognition
Artificial Intelligence
Awesome Artificial Intelligence Projects
Stars: ✭ 330 (-25.51%)
Mutual labels:  face-recognition
Cdp
Code for our ECCV 2018 work.
Stars: ✭ 391 (-11.74%)
Mutual labels:  face-recognition
Voxceleb trainer
In defence of metric learning for speaker recognition
Stars: ✭ 316 (-28.67%)
Mutual labels:  metric-learning
Survey of deep metric learning
A comprehensive survey of deep metric learning and related works
Stars: ✭ 406 (-8.35%)
Mutual labels:  metric-learning
Scout
Surveillance Detection Scout: Your Lookout on Autopilot
Stars: ✭ 317 (-28.44%)
Mutual labels:  face-recognition
Face Recognition
Deep face recognition with Keras, Dlib and OpenCV
Stars: ✭ 342 (-22.8%)
Mutual labels:  face-recognition
Fawkes
Fawkes, privacy preserving tool against facial recognition systems. More info at https://sandlab.cs.uchicago.edu/fawkes
Stars: ✭ 4,362 (+884.65%)
Mutual labels:  face-recognition
Deep Metric Learning Baselines
PyTorch Implementation for Deep Metric Learning Pipelines
Stars: ✭ 442 (-0.23%)
Mutual labels:  metric-learning
Deepface
Deep Learning Models for Face Detection/Recognition/Alignments, implemented in Tensorflow
Stars: ✭ 409 (-7.67%)
Mutual labels:  face-recognition

Additive Margin Softmax for Face Verification

by Feng Wang, Weiyang Liu, Haijun Liu, Jian Cheng

The paper is available as a technical report at arXiv.

Introduction

FeatureVis

In this work, we design a new loss function which merges the merits of both NormFace and SphereFace. It is much easier to understand and train, and outperforms the previous state-of-the-art loss function (SphereFace) by 2-5% on MegaFace.

Citation

If you find AM-Softmax useful in your research, please consider to cite:

@article{Wang_2018_amsoftmax,
  title = {Additive Margin Softmax for Face Verification},
  author = {Wang, Feng and Liu, Weiyang and Liu, Haijun and Cheng, Jian},
  journal = {arXiv preprint arXiv:1801.05599},
  year = {2018}
}

Training

Requirements: My Caffe version https://github.com/happynear/caffe-windows. This version can also be compiled in Linux.

The prototxt file is in ./prototxt. The batch size is set to 256. If your GPU's memory is not sufficient enough, you may set iter_size: 2 in face_solver.prototxt and batch_size: 128 in face_train_test.prototxt.

The dataset used for training is CASIA-Webface. We removed 59 identities that are duplicated with LFW (17) and MegaFace Set 1 (42). This is why the final inner-product layer's output is 10516. The list of the duplicated identities can be found in https://github.com/happynear/FaceDatasets.

All other settings are the same with SphereFace. Please refer to the details in SphereFace's repository.

PS: If you want to try the margin scheme described in ArcFace, you may try to transplant this layer in the experiment branch of my Caffe repository. LabelSpecificHardMarginForward() is the kernel function for cos(theta+m).

Model and Training Log

Feature normalized, s=30, m=0.35: OneDrive, Baidu Yun .

Results

See our arXiv technical report.

3rd-Party Re-implementation

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