selfitcamera
commited on
Commit
•
39d63a2
1
Parent(s):
e28886c
update
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def onClick(cloth_id, pose_image, pose_id, size, request: gr.Request):
|
|
49 |
x_forwarded_for = dict(request.headers).get('x-forwarded-for')
|
50 |
if x_forwarded_for:
|
51 |
client_ip = x_forwarded_for
|
52 |
-
|
53 |
faces = face_detector.detect_faces(pose_image[:,:,::-1])
|
54 |
if len(faces)==0:
|
55 |
client_ip = request.client.host
|
|
|
49 |
x_forwarded_for = dict(request.headers).get('x-forwarded-for')
|
50 |
if x_forwarded_for:
|
51 |
client_ip = x_forwarded_for
|
52 |
+
|
53 |
faces = face_detector.detect_faces(pose_image[:,:,::-1])
|
54 |
if len(faces)==0:
|
55 |
client_ip = request.client.host
|
utils.py
CHANGED
@@ -26,7 +26,8 @@ os.makedirs(tmpFolder, exist_ok=True)
|
|
26 |
def get_cloth_examples():
|
27 |
cloth_dir = os.path.join(data_dir, 'ClothImgs')
|
28 |
examples = []
|
29 |
-
files = sorted(os.listdir(cloth_dir))
|
|
|
30 |
for f in files:
|
31 |
cloth_id = f.split(".")[0]
|
32 |
cloth_path = os.path.join(cloth_dir, f)
|
|
|
26 |
def get_cloth_examples():
|
27 |
cloth_dir = os.path.join(data_dir, 'ClothImgs')
|
28 |
examples = []
|
29 |
+
files = sorted(os.listdir(cloth_dir))
|
30 |
+
# files = sorted(os.listdir(cloth_dir))[::-1]
|
31 |
for f in files:
|
32 |
cloth_id = f.split(".")[0]
|
33 |
cloth_path = os.path.join(cloth_dir, f)
|