selfitcamera
commited on
Commit
·
d06267f
1
Parent(s):
5780146
update
Browse files
app.py
CHANGED
|
@@ -62,7 +62,7 @@ def onClick(cloth_id, pose_image, pose_id, size, request: gr.Request):
|
|
| 62 |
else:
|
| 63 |
x, y, w, h = faces[0]["box"]
|
| 64 |
H, W = pose_image.shape[:2]
|
| 65 |
-
max_face_ratio = 1/
|
| 66 |
if w/W>max_face_ratio or h/H>max_face_ratio:
|
| 67 |
return None, "Fatal Error !!! Headshot is not allowed !!! You must upload a full-body or half-body photo!!!", ""
|
| 68 |
|
|
|
|
| 62 |
else:
|
| 63 |
x, y, w, h = faces[0]["box"]
|
| 64 |
H, W = pose_image.shape[:2]
|
| 65 |
+
max_face_ratio = 1/3.3
|
| 66 |
if w/W>max_face_ratio or h/H>max_face_ratio:
|
| 67 |
return None, "Fatal Error !!! Headshot is not allowed !!! You must upload a full-body or half-body photo!!!", ""
|
| 68 |
|