tpys / face-recognition-caffe2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Face Recognition for Caffe2

Caffe2 is a lightweight, modular, speed, so i want to do face recognition experiment with it, like light cnn, center loss, large margin softmax, Angular softmax and so on.

Reference

Files

  • Original Caffe2 library
  • Large margin softmax operator
    • caffe2/operators/lsoftmax_with_loss.h
    • caffe2/operators/lsoftmax_with_loss.cc
    • caffe2/operators/lsoftmax_with_loss.cu
    • caffe2/python/operator_test/lsoftmax_with_loss_test.py
  • face_example
    • caffe2/python/examples/sphereface_trainer.py
    • caffe2/python/models/sphereface.py
  • mnist_example
    • caffe2/python/examples/mnist_trainer.py

Result

  • mnist_example for lsoftmax

    • margin = 1

    • margin = 2

    • margin = 3

    • margin = 4

Build

Use my version of caffe2, follow origin caffe2 installation Installation

About

License:Apache License 2.0


Languages

Language:C++ 51.3%Language:Python 32.4%Language:Cuda 7.6%Language:C 3.5%Language:Objective-C++ 2.7%Language:CMake 1.6%Language:Metal 0.4%Language:Shell 0.3%Language:Objective-C 0.1%Language:Batchfile 0.1%Language:HTML 0.1%Language:CSS 0.0%Language:Makefile 0.0%