Spaces:
Running
Running
selfitcamera
commited on
Commit
·
003bee5
1
Parent(s):
886c88d
update
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def onClick(cloth_id, pose_image, pose_id, size, request: gr.Request):
|
|
35 |
if pose_image is None:
|
36 |
return None, "no pose image found !", ""
|
37 |
|
38 |
-
faces = face_detector.detect_faces(
|
39 |
if len(faces)==0:
|
40 |
return None, "Failed !!! No face detected !!! please upload a human photo!!! Not clothing photo!!!", ""
|
41 |
|
|
|
35 |
if pose_image is None:
|
36 |
return None, "no pose image found !", ""
|
37 |
|
38 |
+
faces = face_detector.detect_faces(pose_image[:,:,::-1])
|
39 |
if len(faces)==0:
|
40 |
return None, "Failed !!! No face detected !!! please upload a human photo!!! Not clothing photo!!!", ""
|
41 |
|