OpenFace Face Recognition Net Trained on CASIA-WebFace and FaceScrub Data

Represent a facial image as a vector

Released in 2015, this facial feature extractor, based on the Inception architecture, was trained to learn a mapping directly from facial images to 128-dimensional feature vectors. Training was performed using triplets of examples, with two examples belonging to the same person. Facial images sharing the same identity are optimized to be embedded close to each other in the feature space.

Number of layers: 172 | Parameter count: 3,743,280 | Trained size: 15 MB |

Training Set Information

Performance

Examples

Resource retrieval

Get the pre-trained net:

In[1]:=
NetModel["OpenFace Face Recognition Net Trained on CASIA-WebFace and \
FaceScrub Data"]
Out[1]=

Basic usage

Compute a feature vector for a given image:

In[2]:=
features = NetModel["OpenFace Face Recognition Net Trained on CASIA-WebFace \
and FaceScrub Data"][\!\(\*
GraphicsBox[
TagBox[RasterBox[CompressedData["
1:eJylmQVUm/nW7ntOi7u7U9zdIbg7FEmQhCS4u7u7u7u7S5W6C4UCLVBKqXs7
7Zzh7pQ5nZ6Z+c5377qs3ayXl5SVX569n2f/Ax86yBb3zyNHjoSRwoOtZxQi
NNQzxo4WvnEIDPPBB2K9TALDsXhsqAr6KNw0+/0f4frFq28vPh3go1Ol9Uxp
BUSJGJjJGZkpGJiIaGip2ThImFip2XgoWbjoOHlJaJmoWNgoGVmomVlJaOjI
6RkpGZmhKJiYSeloiaipyGlpiSkpSampKejo4JqIguIYOTkpJRUZFTUJBSUp
JQUJBTkJGen3IiYmJSIiOXaU6J/EpEehqKjJ6KjIGajJ2egpuRkphDgZhDjp
+dlo2RipaajJScnJ/klMdJSI8HwiEvi/JEf+cQQe4VfBryWjoSKiIAtLirux
trq6ubW6vrW5+WTj0e761uMHj3YA8N3Xg+TCGmp+URpeYVpuPgomFjIGRhI6
ehp2zkNAGnZeeg5+UjpmGjYOGhZ2AIR3AAouKJlZAJCYlo6YhsD1MyDQHSUj
A0ByahoAJKemghcDL/V7kUAB4zHio+RUxBRUpPR0lIx0lEDHz0ojxceqISWg
IsYlK8wlzMvKysJARUMJLIB2jBj+CxHQwS/5x1EC7DFSEmA/R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hAEcOtZfV8JbH06IEm5awh7Qt0ZS/yPgdzpC/cVkfvaZnwGB7uH22wc7b8Ba
P704uHXrWUhaUWNNw92xkZmGkqnq9LnihFOZkSeTAiZjcIOxXn1x2N5YXJv/
iVYfh05/p75A5x4/xzacTT3avNrNONdcO91QNUZLKlRVJFRdOAIhEaknBZ0Z
aywbZyIXYyIXaSwVqi/hp01YZvBqxwEwGCEZpC/rZyTrpS+J0haGgrh/8ebb
vz/p/Y+5O6zDm4TPQvc/Hk7iIdfO3ns47cLJ98mzj7t774ELzvWQ74+ff9t/
fVDXP25q7UFHy2SvIXi9Ne9Kf9NMRdZMYdxsQfR0duhUWsBkIn40FjMY7tYT
5Nwd6NIb4NLp49iCtm50t6hDmlU6G5XY62ZbqMfoSH5HEydAmSnEmitEmcjG
mstBJZjJxRhIh2iLgK9C4gOjjyZ/iJFUOBx4EeIeGoLu2iIeumIohOj/AS7r
xyo=
"], {{0, 75}, {75, 0}}, {0, 255},
ColorFunction->RGBColor],
BoxForm`ImageTag[
       "Byte", ColorSpace -> "RGB", Interleaving -> True, MetaInformation -> Association[
         "Source" -> "http://wiki.d-addicts.com/File:RaymondLam.jpg", "URL" -> "http://www.wolframcdn.com/waimage/hset028/891/\
8918eb5845add22945c22846d797ed18_v001s.jpg"]],
Selectable->False],
DefaultBaseStyle->"ImageGraphics",
ImageSizeRaw->{75, 75},
PlotRange->{{0, 75}, {0, 75}}]\)];

Get the length of the feature vector:

In[3]:=
Length[features]
Out[3]=

Use a batch of face images:

In[4]:=
(* Evaluate this cell to get the example input *) CloudGet["https://www.wolframcloud.com/obj/ff24125f-4c9e-403d-9d1c-fe29fb9e370d"]

Compute the feature vectors for the batch of images, and obtain the dimensions of the features:

In[5]:=
features = NetModel["OpenFace Face Recognition Net Trained on CASIA-WebFace \
and FaceScrub Data"][faces];
In[6]:=
Dimensions[features]
Out[6]=

Visualize the features in two and three dimensions:

In[7]:=
FeatureSpacePlot[faces, FeatureExtractor -> NetModel["OpenFace Face Recognition Net Trained on CASIA-WebFace \
and FaceScrub Data"], ImageSize -> Large]
Out[7]=
In[8]:=
FeatureSpacePlot3D[faces, FeatureExtractor -> NetModel["OpenFace Face Recognition Net Trained on CASIA-WebFace \
and FaceScrub Data"], ImageSize -> Large]
Out[8]=

Obtain the five closest faces to a given one:

In[9]:=
FeatureNearest[faces, \!\(\*
GraphicsBox[
TagBox[RasterBox[CompressedData["
1:eJwtlwdQ21m25ntn69X2zuvodm5jk4wBQxNMzhiDE9iADW5jchswGDAZk3PO
GQkQSAKBIggFlLNQFhJBImcwxtkdZmbfVM3efvOqjm5d/VUlfbr3nO/8jlH8
i9DEv3zxxRfZX4IlNC7fNysrruDBd+BNWHp2clJ6wtPb6TkJSQlZLvH/Gzy0
/5/Xn/tHLiaxPuZJN21T7jrF+FiHu5iHOJhfO/2fjue+9jQ57Wb4g7PBNyA8
TL4PsD57x/7SdesLHldOu5icAKvP1fPelufcLp/898bd7JSj4bcOF792MvoO
7G9YXwh2vBzlZ59w2z3Cy/aRq1W4s8Utc4MAsx9vWl66a2N6z8Ei0MH8lp1p
gJ2pt8VZT7NTftaG162Nfa1NI9zNIjyM0+45Z4R4hF676Pbjlz7G3/uYnPQ1
OeVvfj7A4sfbVhfvXTOO9P3pxQOf/Kg7qWF+sbedHnpeDXEzD/e2jvCze3zd
NvG+Z+wtp3Bvqwcelj/72oCHj3x+CvO4+tDlSri7ZfR1+0gv2yhP2xgvu4cO
V25aXAwwN/A1O+9tes7jynkPi/Melhc8zc/4mJ/1sbroZ2PqesUgzt8u2PF8
rL9V0p1rwbYXXM79h6/xt4FWF0JtjcIdzSLdrRL8nXLC/OqSHw0WJ4/V58Aa
8nvL05rzfqnNiKrLiG7NT+gofAary4VWZfaUpvZXvBiozuoqTi5P+Tkv8u7z
IK+Y6/Yx3raPnM0f2Js+uGZ238Y4wsM2zNX6to2xu+lpB8Mf7A1PWBl862T8
vbf5GZfLZ9wtL9obno7yBX/KKMzN8ImPRaijwXWTb+5YnAq2+j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D7g1XZ317pP+/O/7Y7vyln
LvCm3oNpdFW+xp+c7qlpy4jOCfPzNfze5fR/PL/jBgYleEXWZFsFc6AJfMki
BblARi5Q4KBfA2AA/3p2ops+VI9tKxyuTO3NjYMUPAWzXv2z0JqnIVmh3h1Z
0cTO0pn+Oi6iXQxKBt2nAPMICwtIXkMZluKhwok+OWV0g08EzP92XQkmvk/b
mj/25/UC4sEc9+87mqM5zhpvEgyto9W5afc8wh0vW/71iwCzM2lBXvXPHqPq
8ujQOmrfnwjBhjXSobXUvsrprlJcy0tkdTqsPKk9I6InOxpamFAcebM2Mbgi
NuhFsMdweSqupYgDbwM0K8UNqqbhSwy0jokBgConDiqAMTLROuH0/wcW2LtT

"], {{0, 50}, {50, 0}}, {0, 255},
ColorFunction->RGBColor],
BoxForm`ImageTag[
     "Byte", ColorSpace -> "RGB", Interleaving -> True, MetaInformation -> Association[
       "Source" -> "http://en.wikipedia.org/wiki/File:Elizabeth_Clare_\
Prophet_-_Guru_Ma.JPG", "URL" -> "http://www.wolframcdn.com/waimage/hset028/aeb/\
aeb98eda6645fcb390425ec1e451a972_v001s.jpg"]],
Selectable->False],
DefaultBaseStyle->"ImageGraphics",
ImageSizeRaw->{50, 50},
PlotRange->{{0, 50}, {0, 50}}]\), 5, FeatureExtractor -> NetModel["OpenFace Face Recognition Net Trained on CASIA-WebFace \
and FaceScrub Data"]]
Out[9]=

Net information

Inspect the number of parameters of all arrays in the net:

In[10]:=
NetInformation[
 NetModel["OpenFace Face Recognition Net Trained on CASIA-WebFace and \
FaceScrub Data"], "ArraysElementCounts"]
Out[10]=

Obtain the total number of parameters:

In[11]:=
NetInformation[
 NetModel["OpenFace Face Recognition Net Trained on CASIA-WebFace and \
FaceScrub Data"], "ArraysTotalElementCount"]
Out[11]=

Obtain the layer type counts:

In[12]:=
NetInformation[
 NetModel["OpenFace Face Recognition Net Trained on CASIA-WebFace and \
FaceScrub Data"], "LayerTypeCounts"]
Out[12]=

Display the summary graphic:

In[13]:=
NetInformation[
 NetModel["OpenFace Face Recognition Net Trained on CASIA-WebFace and \
FaceScrub Data"], "SummaryGraphic"]
Out[13]=

Export to MXNet

Export the net into a format that can be opened in MXNet:

In[14]:=
jsonPath = Export[FileNameJoin[{$TemporaryDirectory, "net.json"}], NetModel["OpenFace Face Recognition Net Trained on CASIA-WebFace \
and FaceScrub Data"], "MXNet"]
Out[14]=

Export also creates a net.params file containing parameters:

In[15]:=
paramPath = FileNameJoin[{DirectoryName[jsonPath], "net.params"}]
Out[15]=

Get the size of the parameter file:

In[16]:=
FileByteCount[paramPath]
Out[16]=

The size is similar to the byte count of the resource object:

In[17]:=
ResourceObject[
  "OpenFace Face Recognition Net Trained on CASIA-WebFace and \
FaceScrub Data"]["ByteCount"]
Out[17]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Resource History

Reference