Extractor now produces a less shaked face. but second pass is now slower by 25%,

before/after: https://imgur.com/L77puLH
This commit is contained in:
Colombo 2019-10-14 12:09:32 +04:00
parent e013cb0f6b
commit 1de1e0029f
2 changed files with 37 additions and 14 deletions

View file

@ -217,6 +217,7 @@ class ExtractSubprocessor(Subprocessor):
else:
face_idx = 0
for rect, image_landmarks in zip( rects, landmarks ):
if src_dflimg is not None and face_idx > 1:
#cannot extract more than 1 face from dflimg
break