Spaces:
Running
on
Zero
Running
on
Zero
Remove auto mask and crop gradio module
Browse files
app.py
CHANGED
|
@@ -265,10 +265,10 @@ 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 |
-
|
| 270 |
-
with gr.Row():
|
| 271 |
-
|
| 272 |
|
| 273 |
example = gr.Examples(
|
| 274 |
inputs=imgs,
|
|
@@ -299,6 +299,8 @@ with image_blocks as demo:
|
|
| 299 |
denoise_steps = gr.Number(label="Denoising Steps", minimum=20, maximum=40, value=30, step=1)
|
| 300 |
seed = gr.Number(label="Seed", minimum=-1, maximum=2147483647, step=1, value=42)
|
| 301 |
|
|
|
|
|
|
|
| 302 |
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')
|
| 303 |
|
| 304 |
image_blocks.launch()
|
|
|
|
| 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,
|
|
|
|
| 299 |
denoise_steps = gr.Number(label="Denoising Steps", minimum=20, maximum=40, value=30, step=1)
|
| 300 |
seed = gr.Number(label="Seed", minimum=-1, maximum=2147483647, step=1, value=42)
|
| 301 |
|
| 302 |
+
is_checked = gr.Number(value=True)
|
| 303 |
+
is_checked_crop = gr.Number(value=True)
|
| 304 |
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')
|
| 305 |
|
| 306 |
image_blocks.launch()
|