aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/sd_upscale.py
diff options
context:
space:
mode:
authorme <25877290+Kryptortio@users.noreply.github.com>2023-01-05 07:27:09 +0000
committerme <25877290+Kryptortio@users.noreply.github.com>2023-01-05 07:27:09 +0000
commitc3109fa18a5a105eea5e343875b540939884f304 (patch)
tree418d5c6dc346c206795eabda5c8c1f867c2d6ac1 /scripts/sd_upscale.py
parent5851bc839b6f639cda59e84eb1ee8c706986633d (diff)
downloadstable-diffusion-webui-gfx803-c3109fa18a5a105eea5e343875b540939884f304.tar.gz
stable-diffusion-webui-gfx803-c3109fa18a5a105eea5e343875b540939884f304.tar.bz2
stable-diffusion-webui-gfx803-c3109fa18a5a105eea5e343875b540939884f304.zip
Adjusted prefix from i2i/t2i to txt2img and img2img and removed those prefixes from img exclusive scripts
Diffstat (limited to 'scripts/sd_upscale.py')
-rw-r--r--scripts/sd_upscale.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/sd_upscale.py b/scripts/sd_upscale.py
index 9f483a67..2aeeb106 100644
--- a/scripts/sd_upscale.py
+++ b/scripts/sd_upscale.py
@@ -17,7 +17,7 @@ class Script(scripts.Script):
return is_img2img
def ui(self, is_img2img):
- elem_prefix = ('i2i' if is_img2img else 't2i') + '_script_sd_upscale_'
+ elem_prefix = 'script_sd_upscale_'
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, elem_id=elem_prefix + "overlap")