Spaces:
Paused
Paused
try it out
Browse files- app.py +9 -9
- example/cloth/001.jpeg +0 -0
- example/cloth/04469_00.jpg +0 -0
- example/cloth/04743_00.jpg +0 -0
- example/cloth/09133_00.jpg +0 -0
- example/cloth/09163_00.jpg +0 -0
- example/cloth/09164_00.jpg +0 -0
- example/cloth/09166_00.jpg +0 -0
- example/cloth/09176_00.jpg +0 -0
- example/cloth/09236_00.jpg +0 -0
- example/cloth/09256_00.jpg +0 -0
- example/cloth/09263_00.jpg +0 -0
- example/cloth/09266_00.jpg +0 -0
- example/cloth/09290_00.jpg +0 -0
- example/cloth/09305_00.jpg +0 -0
- example/cloth/10165_00.jpg +0 -0
- example/cloth/14627_00.jpg +0 -0
- example/cloth/14673_00.jpg +0 -0
- example/human/00034_00.jpg +0 -0
- example/human/00035_00.jpg +0 -0
- example/human/00055_00.jpg +0 -0
- example/human/00121_00.jpg +0 -0
- example/human/01992_00.jpg +0 -0
- example/human/Jensen.jpeg +0 -0
- example/human/sam1 (1).jpg +0 -0
- example/human/taylor-.jpg +0 -0
- example/human/will1 (1).jpg +0 -0
app.py
CHANGED
@@ -130,6 +130,7 @@ def start_tryon(dict,garm_img,garment_des,is_checked,is_checked_crop,denoise_ste
|
|
130 |
pipe.unet_encoder.to(device)
|
131 |
|
132 |
garm_img= garm_img.convert("RGB").resize((768,1024))
|
|
|
133 |
human_img_orig = dict["background"].convert("RGB")
|
134 |
|
135 |
if is_checked_crop:
|
@@ -265,6 +266,14 @@ with image_blocks as demo:
|
|
265 |
with gr.Row():
|
266 |
with gr.Column():
|
267 |
imgs = gr.ImageEditor(sources='upload', type="pil", label='Human. Mask with pen or use auto-masking', interactive=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
268 |
with gr.Row():
|
269 |
is_checked = gr.Checkbox(label="Yes", info="Use auto-generated mask (Takes 5 seconds)",value=True,visible=False)
|
270 |
with gr.Row():
|
@@ -276,15 +285,6 @@ with image_blocks as demo:
|
|
276 |
# examples=human_ex_list
|
277 |
# )
|
278 |
|
279 |
-
with gr.Column():
|
280 |
-
garm_img = gr.Image(label="Garment", sources='upload', type="pil")
|
281 |
-
with gr.Row(elem_id="prompt-container"):
|
282 |
-
with gr.Row():
|
283 |
-
prompt = gr.Textbox(placeholder="Description of garment ex) Short Sleeve Round Neck T-shirts", show_label=False, elem_id="prompt")
|
284 |
-
example = gr.Examples(
|
285 |
-
inputs=garm_img,
|
286 |
-
examples_per_page=8,
|
287 |
-
examples=garm_list_path)
|
288 |
# with gr.Column():
|
289 |
# # image_out = gr.Image(label="Output", elem_id="output-img", height=400)
|
290 |
# masked_img = gr.Image(label="Masked image output", elem_id="masked-img",show_share_button=False)
|
|
|
130 |
pipe.unet_encoder.to(device)
|
131 |
|
132 |
garm_img= garm_img.convert("RGB").resize((768,1024))
|
133 |
+
print(type(garm_img))
|
134 |
human_img_orig = dict["background"].convert("RGB")
|
135 |
|
136 |
if is_checked_crop:
|
|
|
266 |
with gr.Row():
|
267 |
with gr.Column():
|
268 |
imgs = gr.ImageEditor(sources='upload', type="pil", label='Human. Mask with pen or use auto-masking', interactive=True)
|
269 |
+
garm_img = gr.Image(label="Garment", sources='upload', type="pil")
|
270 |
+
with gr.Row(elem_id="prompt-container"):
|
271 |
+
with gr.Row():
|
272 |
+
prompt = gr.Textbox(placeholder="Description of garment ex) Short Sleeve Round Neck T-shirts", show_label=False, elem_id="prompt")
|
273 |
+
example = gr.Examples(
|
274 |
+
inputs=garm_img,
|
275 |
+
examples_per_page=8,
|
276 |
+
examples=garm_list_path)
|
277 |
with gr.Row():
|
278 |
is_checked = gr.Checkbox(label="Yes", info="Use auto-generated mask (Takes 5 seconds)",value=True,visible=False)
|
279 |
with gr.Row():
|
|
|
285 |
# examples=human_ex_list
|
286 |
# )
|
287 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
288 |
# with gr.Column():
|
289 |
# # image_out = gr.Image(label="Output", elem_id="output-img", height=400)
|
290 |
# masked_img = gr.Image(label="Masked image output", elem_id="masked-img",show_share_button=False)
|
example/cloth/001.jpeg
ADDED
example/cloth/04469_00.jpg
DELETED
Binary file (149 kB)
|
|
example/cloth/04743_00.jpg
DELETED
Binary file (75.3 kB)
|
|
example/cloth/09133_00.jpg
DELETED
Binary file (78 kB)
|
|
example/cloth/09163_00.jpg
DELETED
Binary file (52.7 kB)
|
|
example/cloth/09164_00.jpg
DELETED
Binary file (488 kB)
|
|
example/cloth/09166_00.jpg
DELETED
Binary file (28.5 kB)
|
|
example/cloth/09176_00.jpg
DELETED
Binary file (266 kB)
|
|
example/cloth/09236_00.jpg
DELETED
Binary file (67.6 kB)
|
|
example/cloth/09256_00.jpg
DELETED
Binary file (305 kB)
|
|
example/cloth/09263_00.jpg
DELETED
Binary file (250 kB)
|
|
example/cloth/09266_00.jpg
DELETED
Binary file (177 kB)
|
|
example/cloth/09290_00.jpg
DELETED
Binary file (88.1 kB)
|
|
example/cloth/09305_00.jpg
DELETED
Binary file (101 kB)
|
|
example/cloth/10165_00.jpg
DELETED
Binary file (64.4 kB)
|
|
example/cloth/14627_00.jpg
DELETED
Binary file (62.8 kB)
|
|
example/cloth/14673_00.jpg
DELETED
Binary file (157 kB)
|
|
example/human/00034_00.jpg
DELETED
Binary file (77.8 kB)
|
|
example/human/00035_00.jpg
DELETED
Binary file (111 kB)
|
|
example/human/00055_00.jpg
DELETED
Binary file (153 kB)
|
|
example/human/00121_00.jpg
DELETED
Binary file (117 kB)
|
|
example/human/01992_00.jpg
DELETED
Binary file (117 kB)
|
|
example/human/Jensen.jpeg
DELETED
Binary file (166 kB)
|
|
example/human/sam1 (1).jpg
DELETED
Binary file (326 kB)
|
|
example/human/taylor-.jpg
DELETED
Binary file (435 kB)
|
|
example/human/will1 (1).jpg
DELETED
Binary file (61.6 kB)
|
|