dryade36513
commited on
Commit
•
d0747e6
1
Parent(s):
5ecfc46
Update app.py
Browse files
app.py
CHANGED
@@ -260,8 +260,20 @@ for ex_human in human_list_path:
|
|
260 |
|
261 |
image_blocks = gr.Blocks().queue()
|
262 |
with image_blocks as demo:
|
|
|
|
|
|
|
263 |
gr.Markdown("## 數位AI棚拍工作室 👕👔👚")
|
264 |
gr.Markdown("使用您的影像和服裝影像進行虛擬試穿")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
265 |
with gr.Row():
|
266 |
with gr.Column():
|
267 |
imgs = gr.ImageEditor(sources='upload', type="pil", label='AI虛擬模特兒-請啟用全自動偵測模式或是使用畫筆在需要更衣的部位塗抹註記', interactive=True)
|
@@ -295,14 +307,6 @@ with image_blocks as demo:
|
|
295 |
|
296 |
|
297 |
|
298 |
-
with gr.Column():
|
299 |
-
try_button = gr.Button(value="更衣")
|
300 |
-
with gr.Accordion(label="進階設定", open=False):
|
301 |
-
with gr.Row():
|
302 |
-
denoise_steps = gr.Number(label="Denoising Steps", minimum=20, maximum=40, value=30, step=1)
|
303 |
-
seed = gr.Number(label="Seed", minimum=-1, maximum=2147483647, step=1, value=-1)
|
304 |
-
|
305 |
-
|
306 |
|
307 |
try_button.click(fn=start_tryon, inputs=[imgs, garm_img, prompt, is_checked,is_checked_crop, denoise_steps, seed], outputs=[image_out,masked_img], api_name='tryon')
|
308 |
|
|
|
260 |
|
261 |
image_blocks = gr.Blocks().queue()
|
262 |
with image_blocks as demo:
|
263 |
+
|
264 |
+
##文字標題所在
|
265 |
+
|
266 |
gr.Markdown("## 數位AI棚拍工作室 👕👔👚")
|
267 |
gr.Markdown("使用您的影像和服裝影像進行虛擬試穿")
|
268 |
+
##係數區塊
|
269 |
+
with gr.Column():
|
270 |
+
try_button = gr.Button(value="更衣")
|
271 |
+
with gr.Accordion(label="進階設定", open=False):
|
272 |
+
with gr.Row():
|
273 |
+
denoise_steps = gr.Number(label="Denoising Steps", minimum=20, maximum=40, value=30, step=1)
|
274 |
+
seed = gr.Number(label="Seed", minimum=-1, maximum=2147483647, step=1, value=-1)
|
275 |
+
|
276 |
+
##更衣區塊
|
277 |
with gr.Row():
|
278 |
with gr.Column():
|
279 |
imgs = gr.ImageEditor(sources='upload', type="pil", label='AI虛擬模特兒-請啟用全自動偵測模式或是使用畫筆在需要更衣的部位塗抹註記', interactive=True)
|
|
|
307 |
|
308 |
|
309 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
310 |
|
311 |
try_button.click(fn=start_tryon, inputs=[imgs, garm_img, prompt, is_checked,is_checked_crop, denoise_steps, seed], outputs=[image_out,masked_img], api_name='tryon')
|
312 |
|