selfitcamera
commited on
Commit
•
886c88d
1
Parent(s):
622d4df
update
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
|
|
|
2 |
from utils import *
|
3 |
|
4 |
|
@@ -37,7 +38,7 @@ def onClick(cloth_id, pose_image, pose_id, size, request: gr.Request):
|
|
37 |
faces = face_detector.detect_faces(img)
|
38 |
if len(faces)==0:
|
39 |
return None, "Failed !!! No face detected !!! please upload a human photo!!! Not clothing photo!!!", ""
|
40 |
-
|
41 |
# pose_id, cloth_id = pose_id['label'], cloth_id['label']
|
42 |
# print(pose_id, cloth_id, size, (pose_image is None), len(pose_id)>0)
|
43 |
if len(pose_id)>0:
|
|
|
1 |
|
2 |
+
from mtcnn.mtcnn import MTCNN
|
3 |
from utils import *
|
4 |
|
5 |
|
|
|
38 |
faces = face_detector.detect_faces(img)
|
39 |
if len(faces)==0:
|
40 |
return None, "Failed !!! No face detected !!! please upload a human photo!!! Not clothing photo!!!", ""
|
41 |
+
|
42 |
# pose_id, cloth_id = pose_id['label'], cloth_id['label']
|
43 |
# print(pose_id, cloth_id, size, (pose_image is None), len(pose_id)>0)
|
44 |
if len(pose_id)>0:
|