Update website to align_v1.
This commit is contained in:
parent
db46f273d2
commit
40f124c614
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue