Fix flake8 warnings.

This commit is contained in:
Brandon Amos 2016-01-16 22:54:57 -05:00
parent 5502b26018
commit ca15ee5176
1 changed files with 2 additions and 1 deletions

View File

@ -58,6 +58,7 @@ net = openface.TorchNeuralNet(args.networkModel, args.imgDim)
print("Loading the dlib and OpenFace models took {:0.4f} seconds.".format(
time.time() - start))
def getTimes(rgbImg):
start = time.time()
bb = align.getLargestFaceBoundingBox(rgbImg)
@ -72,7 +73,7 @@ def getTimes(rgbImg):
alignmentTime = time.time() - start
start = time.time()
rep = net.forward(alignedFace)
net.forward(alignedFace)
repTime = time.time() - start
return (detectionTime, alignmentTime, repTime)