ResNet-101 for 3D Morphable Model Regression
Trained on
Casia WebFace Data
Released in 2016, this model takes a facial image as input and produces a 198-dimensional feature vector representing its 3D morphable model. The feature vector produced by the net is meant to be consumed by the Basel Face Model; the first half of the vector (the first 99 components) represents the 3D shape while the second represents texture. The model can be effectively used as a generic feature extractor.
Number of layers: 346 |
Parameter count: 43,011,206 |
Trained size: 174 MB |
Examples
Resource retrieval
Get the pre-trained net:
Basic usage
Compute a feature vector for a given image:
Get the length of the feature vector:
Use a batch of face images:
Compute the feature vectors for the batch of images and obtain the dimensions of the features:
Reduce the feature vectors to two dimensions with t-SNE:
Visualize the results:
Obtain the five closest faces to a given one:
Net information
Inspect the number of parameters of all arrays in the net:
Obtain the total number of parameters:
Obtain the layer type counts:
Display the summary graphic:
Export to MXNet
Export the net into a format that can be opened in MXNet:
Export also creates a net.params file containing parameters:
Get the size of the parameter file:
The size is similar to the byte count of the resource object:
Requirements
Wolfram Language
12.1
(March 2020)
or above
Resource History
Reference