diff options
author | kaneda2004 <emmgee@gmail.com> | 2022-11-28 20:29:49 +0000 |
---|---|---|
committer | kaneda2004 <emmgee@gmail.com> | 2022-11-28 20:29:49 +0000 |
commit | 950d9c739ea523652c653e32c09a37c64074c38f (patch) | |
tree | b722dab7338236ec5d0475044397fe226f8af574 /scripts/sd_upscale.py | |
parent | 91226829f8cef93fd3ec5ae979ec2e694f741a27 (diff) | |
download | stable-diffusion-webui-gfx803-950d9c739ea523652c653e32c09a37c64074c38f.tar.gz stable-diffusion-webui-gfx803-950d9c739ea523652c653e32c09a37c64074c38f.tar.bz2 stable-diffusion-webui-gfx803-950d9c739ea523652c653e32c09a37c64074c38f.zip |
Update SD Upscaler to include user selectable Scale Factor
Diffstat (limited to 'scripts/sd_upscale.py')
-rw-r--r-- | scripts/sd_upscale.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/sd_upscale.py b/scripts/sd_upscale.py index dff54f0a..28bd96b3 100644 --- a/scripts/sd_upscale.py +++ b/scripts/sd_upscale.py @@ -19,7 +19,7 @@ class Script(scripts.Script): def ui(self, is_img2img):
info = gr.HTML("<p style=\"margin-bottom:0.75em\">Will upscale the image by the selected scale factor; use width and height sliders to set tile size</p>")
overlap = gr.Slider(minimum=0, maximum=256, step=16, label='Tile overlap', value=64)
- scale_factor = gr.Slider(minimum=0, maximum=4, step=1, label='Scale Factor', value=2)
+ scale_factor = gr.Slider(minimum=1, maximum=4, step=1, label='Scale Factor', value=2)
upscaler_index = gr.Radio(label='Upscaler', choices=[x.name for x in shared.sd_upscalers], value=shared.sd_upscalers[0].name, type="index")
return [info, overlap, upscaler_index, scale_factor]
|