aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-08 07:31:20 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-09-08 07:31:20 +0000
commit61785cef656335cce3ab50b420301d2821f7c5e1 (patch)
treedf66e649b5e30c21fb68d6b93af9bb48b0f48584 /modules/ui.py
parent0fedd50886fb2f745cc6faab001090b77fbd0382 (diff)
parent9ddaf8269ebfb11c8fd2e48f0e8d33c125213437 (diff)
downloadstable-diffusion-webui-gfx803-61785cef656335cce3ab50b420301d2821f7c5e1.tar.gz
stable-diffusion-webui-gfx803-61785cef656335cce3ab50b420301d2821f7c5e1.tar.bz2
stable-diffusion-webui-gfx803-61785cef656335cce3ab50b420301d2821f7c5e1.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py
index f5564d0e..b1a8c776 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -323,7 +323,7 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
with gr.Group():
switch_mode = gr.Radio(label='Mode', elem_id="img2img_mode", choices=['Redraw whole image', 'Inpaint a part of image', 'Loopback', 'SD upscale'], value='Redraw whole image', type="index", show_label=False)
init_img = gr.Image(label="Image for img2img", source="upload", interactive=True, type="pil")
- init_img_with_mask = gr.Image(label="Image for inpainting with mask", elem_id="img2maskimg", source="upload", interactive=True, type="pil", tool="sketch", visible=False)
+ init_img_with_mask = gr.Image(label="Image for inpainting with mask", elem_id="img2maskimg", source="upload", interactive=True, type="pil", tool="sketch", visible=False, image_mode="RGBA")
resize_mode = gr.Radio(label="Resize mode", show_label=False, choices=["Just resize", "Crop and resize", "Resize and fill"], type="index", value="Just resize")
steps = gr.Slider(minimum=1, maximum=150, step=1, label="Sampling Steps", value=20)