From ca15ee51760830d9bb239ed0fe0d54c009661760 Mon Sep 17 00:00:00 2001 From: Brandon Amos Date: Sat, 16 Jan 2016 22:54:57 -0500 Subject: [PATCH] Fix flake8 warnings. --- util/profile-pipeline.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/profile-pipeline.py b/util/profile-pipeline.py index f2f3030..c8051d0 100755 --- a/util/profile-pipeline.py +++ b/util/profile-pipeline.py @@ -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)