dryade36513 commited on
Commit
6996294
ยท
verified ยท
1 Parent(s): 02267af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -10
app.py CHANGED
@@ -257,18 +257,17 @@ for ex_human in human_list_path:
257
 
258
  ##default human
259
 
260
-
261
  image_blocks = gr.Blocks().queue()
262
  with image_blocks as demo:
263
- gr.Markdown("## IDM-VTON ๐Ÿ‘•๐Ÿ‘”๐Ÿ‘š")
264
- gr.Markdown("Virtual Try-on with your image and garment image. Check out the [source codes](https://github.com/yisol/IDM-VTON) and the [model](https://huggingface.co/yisol/IDM-VTON)")
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)
270
  with gr.Row():
271
- is_checked_crop = gr.Checkbox(label="Yes", info="Use auto-crop & resizing",value=False)
272
 
273
  example = gr.Examples(
274
  inputs=imgs,
@@ -277,20 +276,20 @@ with image_blocks as demo:
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)
291
  with gr.Column():
292
  # image_out = gr.Image(label="Output", elem_id="output-img", height=400)
293
- image_out = gr.Image(label="Output", elem_id="output-img",show_share_button=False)
294
 
295
 
296
 
 
257
 
258
  ##default human
259
 
 
260
  image_blocks = gr.Blocks().queue()
261
  with image_blocks as demo:
262
+ gr.Markdown("## ๐Ÿ‘” ๅ“žๅ“ž่‘—่กฃ ๐Ÿ‘•")
263
+ gr.Markdown("ไธŠๅ‚ณ็…ง็‰‡ๆฃšๆ‹ๅ…ๆจก็‰นๅฅฝ่ผ•้ฌ†")
264
  with gr.Row():
265
  with gr.Column():
266
+ imgs = gr.ImageEditor(sources='upload', type="pil", label='๐Ÿ„ๆจก็‰นๅ…’็›ธ็‰‡ไธŠๅ‚ณ๐Ÿ„', interactive=True)
267
  with gr.Row():
268
+ is_checked = gr.Checkbox(label="Yes", info="๐Ÿ„่‡ชๅ‹•็”Ÿๆˆ้ฎ็ฝฉ๐Ÿ„",value=True)
269
  with gr.Row():
270
+ is_checked_crop = gr.Checkbox(label="Yes", info="๐Ÿ„่‡ชๅ‹•ๅ‰ช่ฃไธฆ็ธฎๆ”พๅคงๅฐ๐Ÿ„",value=False)
271
 
272
  example = gr.Examples(
273
  inputs=imgs,
 
276
  )
277
 
278
  with gr.Column():
279
+ garm_img = gr.Image(label="๐Ÿ„ๆˆ่กฃ็›ธ็‰‡๐Ÿ„", sources='upload', type="pil")
280
  with gr.Row(elem_id="prompt-container"):
281
  with gr.Row():
282
+ prompt = gr.Textbox(placeholder="๐Ÿ„...่ซ‹็”จ่‹ฑๆ–‡่ชชๆ˜Žๆˆ่กฃ็จฎ้กž...ๅฆ‚ Short Sleeve Round Neck T-shirts", show_label=False, elem_id="prompt")
283
  example = gr.Examples(
284
  inputs=garm_img,
285
+ examples_per_page=12,
286
  examples=garm_list_path)
287
  with gr.Column():
288
  # image_out = gr.Image(label="Output", elem_id="output-img", height=400)
289
  masked_img = gr.Image(label="Masked image output", elem_id="masked-img",show_share_button=False)
290
  with gr.Column():
291
  # image_out = gr.Image(label="Output", elem_id="output-img", height=400)
292
+ image_out = gr.Image(label="๐Ÿ„ๆจกๆจก่‘—่กฃ็…ง๐Ÿ„", elem_id="output-img",show_share_button=False)
293
 
294
 
295