Fix flake8 warnings.

This commit is contained in:
Brandon Amos 2016-01-07 18:43:25 -05:00
parent 6246fada83
commit 434dc1ca9f
3 changed files with 6 additions and 5 deletions

View File

@ -6,10 +6,6 @@ import os
sys.path.insert(0, os.path.abspath('..')) sys.path.insert(0, os.path.abspath('..'))
def setup(app):
app.add_javascript("sp.js")
app.add_javascript("track.js")
MOCK_MODULES = ['argparse', 'cv2', 'dlib', 'numpy', 'pandas'] MOCK_MODULES = ['argparse', 'cv2', 'dlib', 'numpy', 'pandas']
for mod_name in MOCK_MODULES: for mod_name in MOCK_MODULES:
sys.modules[mod_name] = mock.MagicMock() sys.modules[mod_name] = mock.MagicMock()
@ -46,6 +42,10 @@ pygments_style = 'sphinx'
todo_include_todos = True todo_include_todos = True
def setup(app):
app.add_javascript("sp.js")
app.add_javascript("track.js")
# html_theme = 'alabaster' # html_theme = 'alabaster'
html_theme = 'sphinx_rtd_theme' html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static'] html_static_path = ['_static']

View File

@ -271,7 +271,7 @@ class OpenFaceServerProtocol(WebSocketServerProtocol):
for bb in bbs: for bb in bbs:
# print(len(bbs)) # print(len(bbs))
landmarks = align.findLandmarks(rgbFrame, bb) landmarks = align.findLandmarks(rgbFrame, bb)
alignedFace = align.align(args.imgDim, rgbImg, bb, alignedFace = align.align(args.imgDim, rgbFrame, bb,
landmarks=landmarks, landmarks=landmarks,
landmarkIndices=openface.AlignDlib.OUTER_EYES_AND_NOSE) landmarkIndices=openface.AlignDlib.OUTER_EYES_AND_NOSE)
if alignedFace is None: if alignedFace is None:

View File

@ -219,6 +219,7 @@ def plotOpenFaceROC(workDir, plotFolds=True, color=None):
AUC = getAUC(fprs, tprs) AUC = getAUC(fprs, tprs)
return foldPlot, meanPlot, AUC return foldPlot, meanPlot, AUC
def plotClassifyExp(workDir): def plotClassifyExp(workDir):
print("Plotting.") print("Plotting.")