Fix flake8 warnings.
This commit is contained in:
parent
6246fada83
commit
434dc1ca9f
|
@ -6,10 +6,6 @@ import os
|
|||
|
||||
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']
|
||||
for mod_name in MOCK_MODULES:
|
||||
sys.modules[mod_name] = mock.MagicMock()
|
||||
|
@ -46,6 +42,10 @@ pygments_style = 'sphinx'
|
|||
todo_include_todos = True
|
||||
|
||||
|
||||
def setup(app):
|
||||
app.add_javascript("sp.js")
|
||||
app.add_javascript("track.js")
|
||||
|
||||
# html_theme = 'alabaster'
|
||||
html_theme = 'sphinx_rtd_theme'
|
||||
html_static_path = ['_static']
|
||||
|
|
|
@ -271,7 +271,7 @@ class OpenFaceServerProtocol(WebSocketServerProtocol):
|
|||
for bb in bbs:
|
||||
# print(len(bbs))
|
||||
landmarks = align.findLandmarks(rgbFrame, bb)
|
||||
alignedFace = align.align(args.imgDim, rgbImg, bb,
|
||||
alignedFace = align.align(args.imgDim, rgbFrame, bb,
|
||||
landmarks=landmarks,
|
||||
landmarkIndices=openface.AlignDlib.OUTER_EYES_AND_NOSE)
|
||||
if alignedFace is None:
|
||||
|
|
|
@ -219,6 +219,7 @@ def plotOpenFaceROC(workDir, plotFolds=True, color=None):
|
|||
AUC = getAUC(fprs, tprs)
|
||||
return foldPlot, meanPlot, AUC
|
||||
|
||||
|
||||
def plotClassifyExp(workDir):
|
||||
print("Plotting.")
|
||||
|
||||
|
|
Loading…
Reference in New Issue