yisol commited on
Commit ยท
c123434
1
Parent(s): b7d9c38
fix manual masking and add example image
Browse filesFiles changed (5)
238 unmodified lines2392402412422432442452462472482492504 unmodified lines255256257258259260261238 unmodified lineswith image_blocks as demo:with gr.Row():with gr.Column():imgs = gr.ImageMask(sources='upload', type="pil", label='Human. Mask with pen or use auto-masking', interactive=True)with gr.Row():is_checked = gr.Checkbox(label="Yes", info="Use auto-generated mask",value=True)example = gr.Examples(inputs=imgs,examples_per_page=8,examples=human_ex_list)4 unmodified linesprompt = gr.Textbox(placeholder="Description of garment ex) Short Sleeve Round Neck T-shirts", show_label=False, elem_id="prompt")example = gr.Examples(inputs=garm_img,examples_per_page=8,examples=garm_list_path)with gr.Column():# image_out = gr.Image(label="Output", elem_id="output-img", height=400)238 unmodified lines2392402412422432442452462472482492504 unmodified lines255256257258259260261238 unmodified lineswith image_blocks as demo:with gr.Row():with gr.Column():imgs = gr.ImageEditor(sources='upload', type="pil", label='Human. Mask with pen or use auto-masking', interactive=True)with gr.Row():is_checked = gr.Checkbox(label="Yes", info="Use auto-generated mask (Takes 5 more seconds)",value=True)example = gr.Examples(inputs=imgs,examples_per_page=10,examples=human_ex_list)4 unmodified linesprompt = gr.Textbox(placeholder="Description of garment ex) Short Sleeve Round Neck T-shirts", show_label=False, elem_id="prompt")example = gr.Examples(inputs=garm_img,examples_per_page=10,examples=garm_list_path)with gr.Column():# image_out = gr.Image(label="Output", elem_id="output-img", height=400)
app.py+4-4
example/human/Jensen.jpegAdded

example/human/sam1 (1).jpgAdded
.jpg)
example/human/taylor-.jpgAdded

example/human/will1 (1).jpgAdded
.jpg)