face_landmark_dnn icon indicating copy to clipboard operation
face_landmark_dnn copied to clipboard

Face Landmark Detector based on Mobilenet V1

facial-landmark-dnn

Facial landmark detection using Convolutional Neural Networks for Mobile Device

[ Requirements ]

  • tensorflow==1.5.0
  • Keras==2.1.3
  • coremltools==0.8

[ Data Preprocessing ]

# Example: Load Dataset
X = np.load(PATH + "basic_dataset_img.npz")
y = np.load(PATH + "basic_dataset_pts.npz")
X = X['arr_0']
y = y['arr_0'].reshape(-1, 136)

[ Modeling ]

  • VGG_like_model
  • Mobilenet_based_model

[ Result ]

Youtube Video 1 Youtube Video 2

[ Converter for Mobile ]

  • IOS - Keras to CoreML

  • Android (TODO)

    1. Import model in Tensorflow
    2. Import model in Java
      • deeplearning4j a java library allow to import keras model: tutorial link
      • Use deeplearning4j in Android: it is easy since you are in java world. check this tutorial

[ Reference ]