Skip to content

Keras-OpenFace is a project converting OpenFace from Torch implementation to a Keras version

License

Notifications You must be signed in to change notification settings

vsyw/Keras-OpenFace

Repository files navigation

Keras-OpenFace

Keras-OpenFace is a project converting OpenFace from it's original Torch implementation to a Keras version

If you are only interested in using pre-trained model

Load the Keras OpenFace model(Accuracy: 0.938+-0.013)

from keras.models import load_model
from keras.utils import CustomObjectScope
import tensorflow as tf
with CustomObjectScope({'tf': tf}):
  model = load_model('./model/nn4.small2.v1.h5')

Running the whole convertion process and look into Kears-Openface-convertion.ipynb

$ jupyter notebook

CoreML-OpenFace

Pre-trained CoreML version of OpenFace in model/openface.coreml which you can easily integrate OpenFace into your iOS application.

License

Unless otherwise stated, the source code, notebook files, and trained Tensorflow and Keras model files are licensed under the Apache 2.0 License.