Increase to regional mask drawing canvas size.

pull/102/head
SBM 2023-05-09 18:04:08 +03:00
parent 2dc66cbeb0
commit cff685b53e
2 changed files with 9 additions and 1 deletions

View File

@ -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)

6
style.css Normal file
View File

@ -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;
}