Simplify crop logic

This commit is contained in:
Justin Maier
2022-10-10 12:04:21 -06:00
parent 6435691bb1
commit 1d64976dbc
2 changed files with 5 additions and 13 deletions

View File

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