aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-12-24 06:46:35 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-12-24 06:46:35 +0000
commit9441c28c947588d756e279a8cd5db6c0b4a8d2e4 (patch)
tree414c854735b316e0c05ad58dd5a9f02f1cd02fd9 /modules/ui.py
parent1d9eaf94e32e2d6b817a6796ffa7b0a814580015 (diff)
downloadstable-diffusion-webui-gfx803-9441c28c947588d756e279a8cd5db6c0b4a8d2e4.tar.gz
stable-diffusion-webui-gfx803-9441c28c947588d756e279a8cd5db6c0b4a8d2e4.tar.bz2
stable-diffusion-webui-gfx803-9441c28c947588d756e279a8cd5db6c0b4a8d2e4.zip
add an option for img2img background color
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 28481e33..76919b0f 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -812,7 +812,7 @@ def create_ui():
with gr.Tabs(elem_id="mode_img2img") as tabs_img2img_mode:
with gr.TabItem('img2img', id='img2img'):
- init_img = gr.Image(label="Image for img2img", elem_id="img2img_image", show_label=False, source="upload", interactive=True, type="pil", tool=cmd_opts.gradio_img2img_tool).style(height=480)
+ init_img = gr.Image(label="Image for img2img", elem_id="img2img_image", show_label=False, source="upload", interactive=True, type="pil", tool=cmd_opts.gradio_img2img_tool, image_mode="RGBA").style(height=480)
with gr.TabItem('Inpaint', id='inpaint'):
init_img_with_mask = gr.Image(label="Image for inpainting with mask", show_label=False, elem_id="img2maskimg", source="upload", interactive=True, type="pil", tool=cmd_opts.gradio_inpaint_tool, image_mode="RGBA").style(height=480)