Spaces:
Running
Running
selfitcamera
commited on
Commit
·
acb141f
1
Parent(s):
513122c
init
Browse files- __pycache__/utils.cpython-310.pyc +0 -0
- app.py +1 -1
- utils.py +2 -2
__pycache__/utils.cpython-310.pyc
CHANGED
Binary files a/__pycache__/utils.cpython-310.pyc and b/__pycache__/utils.cpython-310.pyc differ
|
|
app.py
CHANGED
@@ -91,8 +91,8 @@ with gr.Blocks() as demo:
|
|
91 |
with gr.Row():
|
92 |
with gr.Column():
|
93 |
cloth_image = gr.Image(value=None, interactive=False, type="filepath", label="choose a clothing")
|
94 |
-
# hr_example = gr.Examples(inputs=cloth_image,examples_per_page=9,examples=cloth_hr_examples, label="hight resolution clothing")
|
95 |
example = gr.Examples(inputs=cloth_image,examples_per_page=20,examples=cloth_examples, label="clothing")
|
|
|
96 |
|
97 |
with gr.Column():
|
98 |
pose_image = gr.Image(value=None, type="filepath", label="choose/upload a photo")
|
|
|
91 |
with gr.Row():
|
92 |
with gr.Column():
|
93 |
cloth_image = gr.Image(value=None, interactive=False, type="filepath", label="choose a clothing")
|
|
|
94 |
example = gr.Examples(inputs=cloth_image,examples_per_page=20,examples=cloth_examples, label="clothing")
|
95 |
+
hr_example = gr.Examples(inputs=cloth_image,examples_per_page=9,examples=cloth_hr_examples, label="invalid clothing")
|
96 |
|
97 |
with gr.Column():
|
98 |
pose_image = gr.Image(value=None, type="filepath", label="choose/upload a photo")
|
utils.py
CHANGED
@@ -30,8 +30,8 @@ def get_cloth_examples(hr=0):
|
|
30 |
cloth_dir = os.path.join(data_dir, 'ClothImgs')
|
31 |
examples = []
|
32 |
files = sorted(os.listdir(cloth_dir))
|
33 |
-
|
34 |
-
hr_clothes = []
|
35 |
for f in files:
|
36 |
if '.jpg' not in f and '.png' not in f:
|
37 |
continue
|
|
|
30 |
cloth_dir = os.path.join(data_dir, 'ClothImgs')
|
31 |
examples = []
|
32 |
files = sorted(os.listdir(cloth_dir))
|
33 |
+
hr_clothes = [595, 594, 593, 591, ]
|
34 |
+
# hr_clothes = []
|
35 |
for f in files:
|
36 |
if '.jpg' not in f and '.png' not in f:
|
37 |
continue
|