Spaces:
Running
on
L40S
Running
on
L40S
Update webgui.py
Browse files
webgui.py
CHANGED
@@ -198,8 +198,10 @@ def process_video(uploaded_img, uploaded_audio, width, height, length, seed, fac
|
|
198 |
det_bboxes, probs = face_detector.detect(face_img)
|
199 |
select_bbox = select_face(det_bboxes, probs)
|
200 |
if select_bbox is None:
|
|
|
201 |
face_mask[:, :] = 255
|
202 |
else:
|
|
|
203 |
xyxy = select_bbox[:4]
|
204 |
xyxy = np.round(xyxy).astype('int')
|
205 |
rb, re, cb, ce = xyxy[1], xyxy[3], xyxy[0], xyxy[2]
|
|
|
198 |
det_bboxes, probs = face_detector.detect(face_img)
|
199 |
select_bbox = select_face(det_bboxes, probs)
|
200 |
if select_bbox is None:
|
201 |
+
print("SELECT_BBOX IS NONE")
|
202 |
face_mask[:, :] = 255
|
203 |
else:
|
204 |
+
print("SELECT_BBOX IS NOT NONE")
|
205 |
xyxy = select_bbox[:4]
|
206 |
xyxy = np.round(xyxy).astype('int')
|
207 |
rb, re, cb, ce = xyxy[1], xyxy[3], xyxy[0], xyxy[2]
|