2015-10-13 20:02:12 +08:00
|
|
|
# OpenFace
|
|
|
|
|
2015-10-15 23:25:46 +08:00
|
|
|
[ ![Build Status] [travis-image] ] [travis]
|
|
|
|
[ ![Release] [release-image] ] [releases]
|
|
|
|
[ ![License] [license-image] ] [license]
|
2015-10-15 23:27:34 +08:00
|
|
|
[ ![DOI] [doi-image] ] [doi]
|
2015-10-19 00:16:27 +08:00
|
|
|
[ ![Gitter] [gitter-image] ] [gitter]
|
2015-11-01 20:58:51 +08:00
|
|
|
[ ![Documentation Status][doc-image] ] [docs]
|
2015-10-15 23:25:46 +08:00
|
|
|
|
|
|
|
[travis-image]: https://travis-ci.org/cmusatyalab/openface.png?branch=master
|
|
|
|
[travis]: http://travis-ci.org/cmusatyalab/openface
|
|
|
|
|
2015-10-15 23:27:18 +08:00
|
|
|
[release-image]: http://img.shields.io/badge/release-0.1.1-blue.svg?style=flat
|
2015-10-15 23:25:46 +08:00
|
|
|
[releases]: https://github.com/cmusatyalab/openface/releases
|
|
|
|
|
|
|
|
[license-image]: http://img.shields.io/badge/license-Apache--2-blue.svg?style=flat
|
|
|
|
[license]: LICENSE
|
|
|
|
|
2015-10-15 23:50:40 +08:00
|
|
|
[doi-image]: https://zenodo.org/badge/doi/10.5281/zenodo.32148.svg
|
|
|
|
[doi]: http://dx.doi.org/10.5281/zenodo.32148
|
2015-10-13 19:45:20 +08:00
|
|
|
|
2015-10-19 00:16:27 +08:00
|
|
|
[gitter-image]: https://badges.gitter.im/Join%20Chat.svg
|
|
|
|
[gitter]: https://gitter.im/cmusatyalab/openface
|
|
|
|
|
2015-11-01 20:58:51 +08:00
|
|
|
[doc-image]: https://readthedocs.org/projects/openface/badge/?version=latest
|
|
|
|
[docs]: http://openface.readthedocs.org/en/latest/docs?badge=latest
|
|
|
|
|
|
|
|
|
2015-10-14 23:51:46 +08:00
|
|
|
This is a Python and [Torch](http://torch.ch) implementation of the CVPR 2015 paper
|
2015-09-25 02:47:17 +08:00
|
|
|
[FaceNet: A Unified Embedding for Face Recognition and Clustering](http://www.cv-foundation.org/openaccess/content_cvpr_2015/app/1A_089.pdf)
|
|
|
|
by Florian Schroff, Dmitry Kalenichenko, and James Philbin at Google
|
|
|
|
using publicly available libraries and datasets.
|
2015-09-25 05:36:26 +08:00
|
|
|
Torch allows the network to be executed on a CPU or with CUDA.
|
2015-09-25 02:47:17 +08:00
|
|
|
|
|
|
|
**Crafted by [Brandon Amos](http://bamos.github.io) in the
|
|
|
|
[Elijah](http://elijah.cs.cmu.edu) research group at
|
|
|
|
Carnegie Mellon University.**
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2015-11-01 21:00:02 +08:00
|
|
|
## Overview
|
|
|
|
|
2015-09-25 02:47:17 +08:00
|
|
|
![](./images/summary.jpg)
|
|
|
|
|
2015-11-01 21:00:02 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
## Real-Time Demo
|
|
|
|
|
2015-10-15 05:11:33 +08:00
|
|
|
<a href='https://www.youtube.com/watch?v=LZJOTRkjZA4'><img src='images/youtube-web.gif'></img></a>
|
2015-09-25 05:36:26 +08:00
|
|
|
|
2015-10-25 02:27:55 +08:00
|
|
|
---
|
|
|
|
|
2015-11-01 20:58:51 +08:00
|
|
|
The documentation is available [here](http://openface.readthedocs.org/en/latest/docs).
|
2015-09-25 02:47:17 +08:00
|
|
|
|
2015-11-01 20:52:46 +08:00
|
|
|
Please join the
|
|
|
|
[cmu-openface group](https://groups.google.com/forum/#!forum/cmu-openface)
|
|
|
|
or the
|
|
|
|
[gitter chat](https://gitter.im/cmusatyalab/openface)
|
|
|
|
for discussions and installation issues.
|
2015-09-25 02:47:17 +08:00
|
|
|
|
2015-11-01 20:52:46 +08:00
|
|
|
Development discussions and bugs reports are on the
|
|
|
|
[issue tracker](https://github.com/cmusatyalab/openface/issues).
|
2015-10-20 22:00:03 +08:00
|
|
|
|
2015-10-13 20:01:43 +08:00
|
|
|
# Citations
|
|
|
|
|
|
|
|
[![DOI](https://zenodo.org/badge/doi/10.5281/zenodo.32041.svg)](http://dx.doi.org/10.5281/zenodo.32041)
|
|
|
|
|
|
|
|
Please cite this repository if you use this in academic works.
|
|
|
|
|
|
|
|
|
|
|
|
```
|
2015-10-14 03:46:12 +08:00
|
|
|
@misc{amos2015openface,
|
2015-10-13 20:01:43 +08:00
|
|
|
author = {Amos, Brandon and Harkes, Jan and Pillai, Padmanabhan and Elgazzar, Khalid and Satyanarayanan, Mahadev},
|
2015-10-15 23:50:40 +08:00
|
|
|
title = {OpenFace 0.1.1: Face recognition with Google's FaceNet deep neural network},
|
2015-10-13 20:01:43 +08:00
|
|
|
month = oct,
|
|
|
|
year = 2015,
|
2015-10-15 23:50:40 +08:00
|
|
|
doi = {10.5281/zenodo.32148},
|
|
|
|
url = {http://dx.doi.org/10.5281/zenodo.32148}
|
2015-10-13 20:01:43 +08:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2015-10-04 09:15:36 +08:00
|
|
|
# Acknowledgements
|
|
|
|
+ The fantastic Torch ecosystem and community.
|
|
|
|
+ [Alfredo Canziani's](https://github.com/Atcold)
|
|
|
|
implementation of FaceNet's loss function in
|
2015-10-13 22:00:34 +08:00
|
|
|
[torch-TripletEmbedding](https://github.com/Atcold/torch-TripletEmbedding)
|
2015-10-14 04:18:11 +08:00
|
|
|
+ [Nicholas Léonard](https://github.com/nicholas-leonard)
|
|
|
|
for quickly merging my pull requests to
|
2015-10-04 11:04:02 +08:00
|
|
|
[nicholas-leonard/dpnn](https://github.com/nicholas-leonard/dpnn)
|
2015-10-14 04:18:11 +08:00
|
|
|
modifying the inception layer.
|
2015-10-13 21:55:00 +08:00
|
|
|
+ [Francisco Massa](https://github.com/fmassa)
|
|
|
|
and
|
|
|
|
[Andrej Karpathy](http://cs.stanford.edu/people/karpathy/)
|
|
|
|
for
|
2015-10-04 09:15:36 +08:00
|
|
|
quickly releasing [nn.Normalize](https://github.com/torch/nn/pull/341)
|
|
|
|
after I expressed interest in using it.
|
|
|
|
+ [Soumith Chintala](https://github.com/soumith) for
|
|
|
|
help with the [fbcunn](https://github.com/facebook/fbcunn)
|
|
|
|
example code.
|
|
|
|
+ NVIDIA's academic
|
|
|
|
[hardware grant program](https://developer.nvidia.com/academic_hw_seeding)
|
|
|
|
for providing the Tesla K40 used to train the model.
|
2015-10-04 11:23:38 +08:00
|
|
|
+ [Davis King's](https://github.com/davisking) [dlib](https://github.com/davisking/dlib)
|
|
|
|
library for face detection and alignment.
|
2015-10-13 05:12:00 +08:00
|
|
|
+ Zhuo Chen, Kiryong Ha, Wenlu Hu,
|
|
|
|
[Rahul Sukthankar](http://www.cs.cmu.edu/~rahuls/), and
|
|
|
|
Junjue Wang for insightful discussions.
|
2015-09-25 02:47:17 +08:00
|
|
|
|
|
|
|
# Licensing
|
2015-10-13 01:18:23 +08:00
|
|
|
The source code and trained models `nn4.v1.t7` and
|
|
|
|
`celeb-classifier.nn4.v1.t7` are copyright
|
|
|
|
Carnegie Mellon University and licensed under the
|
|
|
|
[Apache 2.0 License](./LICENSE).
|
2015-09-25 02:47:17 +08:00
|
|
|
Portions from the following third party sources have
|
|
|
|
been modified and are included in this repository.
|
|
|
|
These portions are noted in the source files and are
|
|
|
|
copyright their respective authors with
|
|
|
|
the licenses listed.
|
|
|
|
|
|
|
|
Project | Modified | License
|
|
|
|
---|---|---|
|
|
|
|
[Atcold/torch-TripletEmbedding](https://github.com/Atcold/torch-TripletEmbedding) | No | MIT
|
|
|
|
[facebook/fbnn](https://github.com/facebook/fbnn) | Yes | BSD
|