jiajl1 commited on
Commit
e98f05e
1 Parent(s): c2cb399

Desc Apply

Browse files
Files changed (2) hide show
  1. README.md +3 -3
  2. app.py +16 -11
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
- title: 👕邦鼎前沿AI虛擬棚拍攝影工作室👕
3
- emoji: 👕👔👚
4
  colorFrom: yellow
5
  colorTo: red
6
  sdk: gradio
@@ -8,5 +8,5 @@ sdk_version: 4.36.1
8
  app_file: app.py
9
  pinned: false
10
  license: cc-by-nc-sa-4.0
11
- short_description: 👕邦鼎前沿AI虛擬棚拍攝影工作室,滿足你一切棚拍需求高效解決方案👚
12
  ---
 
1
  ---
2
+ title: Change Clothes AI
3
+ emoji: 👚
4
  colorFrom: yellow
5
  colorTo: red
6
  sdk: gradio
 
8
  app_file: app.py
9
  pinned: false
10
  license: cc-by-nc-sa-4.0
11
+ short_description: AI Clothes Changer Online
12
  ---
app.py CHANGED
@@ -265,12 +265,12 @@ with image_blocks as demo:
265
 
266
  ##文字標題所在
267
 
268
- gr.Markdown("## 數位AI棚拍工作室 👕👔👚")
269
- gr.Markdown("使用您的影像和服裝影像進行虛擬試穿")
270
  ##係數區塊
271
  with gr.Column():
272
- try_button = gr.Button(value="更衣")
273
- with gr.Accordion(label="進階設定", open=False):
274
  with gr.Row():
275
  denoise_steps = gr.Number(label="Denoising Steps", minimum=20, maximum=40, value=30, step=1)
276
  seed = gr.Number(label="Seed", minimum=-1, maximum=2147483647, step=1, value=-1)
@@ -278,9 +278,9 @@ with image_blocks as demo:
278
  ##更衣區塊
279
  with gr.Row():
280
  with gr.Column():
281
- imgs = gr.ImageEditor(sources='upload', type="pil", label='AI虛擬模特兒-請啟用全自動偵測模式或是使用畫筆在需要更衣的部位塗抹註記', interactive=True)
282
  with gr.Row():
283
- is_checked = gr.Checkbox(label="Yes", info="啟用全自動偵測更衣模式",value=True)
284
  with gr.Row():
285
  category = gr.Dropdown(
286
  choices=["upper_body", "lower_body", "dresses"],
@@ -288,7 +288,7 @@ with image_blocks as demo:
288
  value="upper_body"
289
  )
290
  with gr.Row():
291
- is_checked_crop = gr.Checkbox(label="Yes", info="開啟自動剪裁並調整圖片大小模式",value=False)
292
 
293
  example = gr.Examples(
294
  inputs=imgs,
@@ -297,10 +297,10 @@ with image_blocks as demo:
297
  )
298
 
299
  with gr.Column():
300
- garm_img = gr.Image(label="成衣正鋪相片", sources='upload', type="pil")
301
  with gr.Row(elem_id="prompt-container"):
302
  with gr.Row():
303
- prompt = gr.Textbox(label="(選填)輸入該衣物的英文描述", placeholder="Short Sleeve Round Neck T-shirts", show_label=True, elem_id="prompt")
304
  example = gr.Examples(
305
  inputs=garm_img,
306
  examples_per_page=16,
@@ -312,8 +312,13 @@ with image_blocks as demo:
312
  # image_out = gr.Image(label="Output", elem_id="output-img", height=400)
313
  image_out = gr.Image(label="Output", elem_id="output-img",show_share_button=False)
314
 
315
-
316
-
 
 
 
 
 
317
 
318
 
319
  try_button.click(fn=start_tryon, inputs=[imgs, garm_img, prompt, is_checked,is_checked_crop, denoise_steps, seed, category], outputs=[image_out,masked_img], api_name='tryon')
 
265
 
266
  ##文字標題所在
267
 
268
+ gr.Markdown("## Change Clothes AI - AI Clothes Changer Online")
269
+ gr.Markdown("Go to [Change Clothes AI](https://changeclothesai.online/) for Free Try-On! 🤗 .")
270
  ##係數區塊
271
  with gr.Column():
272
+ try_button = gr.Button(value="Run Change Clothes AI")
273
+ with gr.Accordion(label="Advanced Settings", open=False):
274
  with gr.Row():
275
  denoise_steps = gr.Number(label="Denoising Steps", minimum=20, maximum=40, value=30, step=1)
276
  seed = gr.Number(label="Seed", minimum=-1, maximum=2147483647, step=1, value=-1)
 
278
  ##更衣區塊
279
  with gr.Row():
280
  with gr.Column():
281
+ imgs = gr.ImageEditor(sources='upload', type="pil", label='Human. Mask with pen or use auto-masking', interactive=True)
282
  with gr.Row():
283
+ is_checked = gr.Checkbox(label="Yes", info="Use auto-generated mask (Takes 5 seconds)",value=True)
284
  with gr.Row():
285
  category = gr.Dropdown(
286
  choices=["upper_body", "lower_body", "dresses"],
 
288
  value="upper_body"
289
  )
290
  with gr.Row():
291
+ is_checked_crop = gr.Checkbox(label="Yes", info="Use auto-crop & resizing",value=False)
292
 
293
  example = gr.Examples(
294
  inputs=imgs,
 
297
  )
298
 
299
  with gr.Column():
300
+ garm_img = gr.Image(label="Garment", sources='upload', type="pil")
301
  with gr.Row(elem_id="prompt-container"):
302
  with gr.Row():
303
+ prompt = gr.Textbox(label="Description of garment", placeholder="Short Sleeve Round Neck T-shirts", show_label=True, elem_id="prompt")
304
  example = gr.Examples(
305
  inputs=garm_img,
306
  examples_per_page=16,
 
312
  # image_out = gr.Image(label="Output", elem_id="output-img", height=400)
313
  image_out = gr.Image(label="Output", elem_id="output-img",show_share_button=False)
314
 
315
+ with gr.Row():
316
+ gr.Markdown("## Links")
317
+ gr.Markdown("###### [Image Describer](http://imagedescriber.online/)")
318
+ gr.Markdown("###### [Picture To Summary AI](https://picturetosummaryai.online/)")
319
+ gr.Markdown("###### [PS2 Filter AI](https://ps2filterai.online/)")
320
+ gr.Markdown("###### [Change Clothes AI](https://changeclothesai.online/)")
321
+ gr.Markdown("###### [Describe Image AI](https://describeimageai.online/)")
322
 
323
 
324
  try_button.click(fn=start_tryon, inputs=[imgs, garm_img, prompt, is_checked,is_checked_crop, denoise_steps, seed, category], outputs=[image_out,masked_img], api_name='tryon')