Update webgui.py
Browse files
webgui.py
CHANGED
|
@@ -200,6 +200,8 @@ def process_video(uploaded_img, uploaded_audio, width, height, length, seed, fac
|
|
| 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]
|
|
|
|
| 200 |
if select_bbox is None:
|
| 201 |
print("SELECT_BBOX IS NONE")
|
| 202 |
face_mask[:, :] = 255
|
| 203 |
+
face_img = cv2.resize(face_img, (width, height))
|
| 204 |
+
face_mask = cv2.resize(face_mask, (width, height))
|
| 205 |
else:
|
| 206 |
print("SELECT_BBOX IS NOT NONE")
|
| 207 |
xyxy = select_bbox[:4]
|