aboutsummaryrefslogtreecommitdiff
path: root/modules/ui.py
diff options
context:
space:
mode:
authorRobin Fernandes <robin@soal.org>2022-09-08 15:59:42 +1000
committerGitHub <noreply@github.com>2022-09-08 15:59:42 +1000
commit21a375e6b2a1738b6e9b58ca40e92487809e6654 (patch)
tree2fa1251b9dbe014e8c83c6c8a066864e4f5d3fde /modules/ui.py
parentbc12eddb408c3503717b234e1a8bb635049f4a91 (diff)
parent0959fa2d027e7a093adb3cfab9be2343ec7348e2 (diff)
Merge branch 'master' into img2img2-color-correction
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)