Python openface.TorchNeuralNet() Examples
The following are 1
code examples of openface.TorchNeuralNet().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
openface
, or try the search function
.
Example #1
Source File: face_recognizer.py From image_recognition with MIT License | 5 votes |
def __init__(self, align_path, net_path): # Init align and net """ Dlib / Openface Face recognizer :param align_path: Dlib align path :param net_path: Openface neural network path """ self._align = openface.AlignDlib(os.path.expanduser(align_path)) self._net = openface.TorchNeuralNet(os.path.expanduser(net_path), imgDim=96, cuda=False) self._face_detector = dlib.get_frontal_face_detector() self._trained_faces = []