提交 905c2937 编写于 作者: A Adam Geitgey

Ignore known files with no faces in CLI

上级 017a77be
......@@ -22,9 +22,9 @@ def scan_known_people(known_people_folder):
if len(encodings) == 0:
click.echo("WARNING: No faces found in {}. Ignoring file.".format(file))
known_names.append(basename)
known_face_encodings.append(encodings[0])
else:
known_names.append(basename)
known_face_encodings.append(encodings[0])
return known_names, known_face_encodings
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册