Auto update

This commit is contained in:
toto
2024-05-24 16:41:10 +08:00
parent c871593737
commit f68c8af1aa
+1 -1
View File
@@ -25,7 +25,7 @@ def facechain_detect_crop(source_image_pil, face_index=0, crop_ratio=1, mode='no
try:
bbox = bboxes[face_index]
except:
if error_when_no_face:
if not error_when_no_face:
return source_image_pil, None, None, None
raise RuntimeError('No face detected or face index error/没有检测到人脸或者人脸的索引错误')