aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui.py
diff options
context:
space:
mode:
authorJustin Maier <Zipp425@gmail.com>2022-10-10 18:04:21 +0000
committerJustin Maier <Zipp425@gmail.com>2022-10-10 18:04:21 +0000
commit1d64976dbc5a0f3124567b91fadd5014a9d93c5f (patch)
tree9d2a9fbd55b19eb367d63b7e1c4f478554355dae /modules/ui.py
parent6435691bb11c5a35703720bfd2a875f24c066f86 (diff)
downloadstable-diffusion-webui-gfx803-1d64976dbc5a0f3124567b91fadd5014a9d93c5f.tar.gz
stable-diffusion-webui-gfx803-1d64976dbc5a0f3124567b91fadd5014a9d93c5f.tar.bz2
stable-diffusion-webui-gfx803-1d64976dbc5a0f3124567b91fadd5014a9d93c5f.zip
Simplify crop logic
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 4bb2892b..1aabe18d 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -909,8 +909,8 @@ def create_ui(wrap_gradio_gpu_call):
with gr.TabItem('Scale to'):
with gr.Group():
with gr.Row():
- upscaling_resize_w = gr.Number(label="Width", value=512)
- upscaling_resize_h = gr.Number(label="Height", value=512)
+ upscaling_resize_w = gr.Number(label="Width", value=512, precision=0)
+ upscaling_resize_h = gr.Number(label="Height", value=512, precision=0)
upscaling_crop = gr.Checkbox(label='Crop to fit', value=True)
with gr.Group():