mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 21:12:07 -07:00
fix extractor
This commit is contained in:
parent
4ce4997d1a
commit
57ea3e61b7
1 changed files with 12 additions and 10 deletions
|
@ -151,7 +151,9 @@ class ExtractSubprocessor(Subprocessor):
|
||||||
if len(rects) != 0:
|
if len(rects) != 0:
|
||||||
data.rects_rotation = rot
|
data.rects_rotation = rot
|
||||||
break
|
break
|
||||||
if max_faces_from_image is not None and len(data.rects) > 1:
|
if max_faces_from_image is not None and \
|
||||||
|
max_faces_from_image > 0 and \
|
||||||
|
len(data.rects) > 0:
|
||||||
data.rects = data.rects[0:max_faces_from_image]
|
data.rects = data.rects[0:max_faces_from_image]
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue