diff --git a/scripts/rp.py b/scripts/rp.py index 55c7b60..610fdbd 100644 --- a/scripts/rp.py +++ b/scripts/rp.py @@ -113,9 +113,11 @@ class Script(modules.scripts.Script): areasimg = gr.Image(type="pil", show_label = False).style(height=256,width=256) threshold = gr.Textbox(label = "threshold",value = 0.4,interactive=True,) + with gr.Row(): + polymask = gr.Image(label = "Mask mode",elem_id="polymask", + source = "upload", mirror_webcam = False, type = "numpy", tool = "sketch") with gr.Row(): with gr.Column(): - polymask = gr.Image(source = "upload", mirror_webcam = False, type = "numpy", tool = "sketch") num = gr.Slider(label="Region", minimum=0, maximum=CBLACK, step=1, value=1) canvas_width = gr.Slider(label="Canvas Width", minimum=64, maximum=2048, value=512, step=8) canvas_height = gr.Slider(label="Canvas Height", minimum=64, maximum=2048, value=512, step=8) diff --git a/style.css b/style.css new file mode 100644 index 0000000..268d9a0 --- /dev/null +++ b/style.css @@ -0,0 +1,6 @@ +#polymask, #polymask > .h-60, #polymask > .h-60 > div, #polymask > .h-60 > div > img +{ + height: 512px !important; + max-height: 512px !important; + min-height: 512px !important; +} \ No newline at end of file