Spaces:
Running
Running
selfitcamera
commited on
Commit
·
513122c
1
Parent(s):
f16cafc
init
Browse files- Datas/ClothImgs/586.jpg +3 -0
- Datas/ClothImgs/587.jpg +3 -0
- Datas/ClothImgs/588.jpg +3 -0
- Datas/ClothImgs/589.jpg +3 -0
- Datas/ClothImgs/590.jpg +3 -0
- Datas/ClothImgs/591.jpg +3 -0
- Datas/ClothImgs/592.jpg +3 -0
- Datas/ClothImgs/593.jpg +3 -0
- Datas/ClothImgs/594.jpg +3 -0
- Datas/ClothImgs/595.jpg +3 -0
- __pycache__/utils.cpython-310.pyc +0 -0
- app.py +2 -2
- utils.py +2 -1
Datas/ClothImgs/586.jpg
ADDED
![]() |
Git LFS Details
|
Datas/ClothImgs/587.jpg
ADDED
![]() |
Git LFS Details
|
Datas/ClothImgs/588.jpg
ADDED
![]() |
Git LFS Details
|
Datas/ClothImgs/589.jpg
ADDED
![]() |
Git LFS Details
|
Datas/ClothImgs/590.jpg
ADDED
![]() |
Git LFS Details
|
Datas/ClothImgs/591.jpg
ADDED
![]() |
Git LFS Details
|
Datas/ClothImgs/592.jpg
ADDED
![]() |
Git LFS Details
|
Datas/ClothImgs/593.jpg
ADDED
![]() |
Git LFS Details
|
Datas/ClothImgs/594.jpg
ADDED
![]() |
Git LFS Details
|
Datas/ClothImgs/595.jpg
ADDED
![]() |
Git LFS Details
|
__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="
|
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 |
+
# 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")
|
utils.py
CHANGED
@@ -30,7 +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 |
-
hr_clothes = [507, 508, 570, 573, 574, 569, ]
|
|
|
34 |
for f in files:
|
35 |
if '.jpg' not in f and '.png' not in f:
|
36 |
continue
|
|
|
30 |
cloth_dir = os.path.join(data_dir, 'ClothImgs')
|
31 |
examples = []
|
32 |
files = sorted(os.listdir(cloth_dir))
|
33 |
+
# hr_clothes = [507, 508, 570, 573, 574, 569, ]
|
34 |
+
hr_clothes = []
|
35 |
for f in files:
|
36 |
if '.jpg' not in f and '.png' not in f:
|
37 |
continue
|