Spaces:
Running
Running
selfitcamera
commited on
Commit
·
c840893
1
Parent(s):
ea2f865
init
Browse files- Datas/ClothImgs/569.jpg +3 -0
- Datas/ClothImgs/570.jpg +3 -0
- Datas/ClothImgs/573.jpg +3 -0
- Datas/ClothImgs/574.jpg +3 -0
- __pycache__/utils.cpython-310.pyc +0 -0
- app.py +1 -1
- utils.py +1 -1
Datas/ClothImgs/569.jpg
ADDED
![]() |
Git LFS Details
|
Datas/ClothImgs/570.jpg
ADDED
![]() |
Git LFS Details
|
Datas/ClothImgs/573.jpg
ADDED
![]() |
Git LFS Details
|
Datas/ClothImgs/574.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,7 +91,7 @@ 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=
|
95 |
example = gr.Examples(inputs=cloth_image,examples_per_page=20,examples=cloth_examples, label="normal clothing")
|
96 |
|
97 |
with gr.Column():
|
|
|
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="normal clothing")
|
96 |
|
97 |
with gr.Column():
|
utils.py
CHANGED
@@ -30,7 +30,7 @@ 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]
|
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 |
for f in files:
|
35 |
if '.jpg' not in f and '.png' not in f:
|
36 |
continue
|