Update website to align_v1.

This commit is contained in:
Brandon Amos 2016-06-07 16:47:17 -04:00
parent db46f273d2
commit 40f124c614
1 changed files with 2 additions and 2 deletions

View File

@ -17,8 +17,8 @@ net = openface.TorchNeuralNet(args.networkModel, args.imgDim, cuda=args.cuda)
# `img` is a numpy matrix containing the RGB pixels of the image.
bb = align.getLargestFaceBoundingBox(img)
alignedFace = align.align(args.imgDim, img, bb,
landmarkIndices=openface.AlignDlib.OUTER_EYES_AND_NOSE)
alignedFace = align.align_v1(args.imgDim, img, bb,
landmarkIndices=openface.AlignDlib.OUTER_EYES_AND_NOSE)
rep1 = net.forward(alignedFace)
# `rep2` obtained similarly.