diff options
author | Taithrah <Taithrah@users.noreply.github.com> | 2023-01-08 20:58:53 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-08 20:58:53 +0000 |
commit | e9d7eff70a3429ee299cbdcae1aeb61fc4d2bcbf (patch) | |
tree | 2373cae4f4e4af72ed170647bf393015075791cc /scripts/sd_upscale.py | |
parent | 8a27730da5d5b25e28370e8ad94844856a839af9 (diff) | |
parent | 8850fc23b6e8a8e210bdfe4aade81516fb5770f3 (diff) | |
download | stable-diffusion-webui-gfx803-e9d7eff70a3429ee299cbdcae1aeb61fc4d2bcbf.tar.gz stable-diffusion-webui-gfx803-e9d7eff70a3429ee299cbdcae1aeb61fc4d2bcbf.tar.bz2 stable-diffusion-webui-gfx803-e9d7eff70a3429ee299cbdcae1aeb61fc4d2bcbf.zip |
Merge branch 'AUTOMATIC1111:master' into small-touch-up
Diffstat (limited to 'scripts/sd_upscale.py')
-rw-r--r-- | scripts/sd_upscale.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/sd_upscale.py b/scripts/sd_upscale.py index 9b8ffd85..332d76d9 100644 --- a/scripts/sd_upscale.py +++ b/scripts/sd_upscale.py @@ -25,6 +25,8 @@ class Script(scripts.Script): return [info, overlap, upscaler_index, scale_factor]
def run(self, p, _, overlap, upscaler_index, scale_factor):
+ if isinstance(upscaler_index, str):
+ upscaler_index = [x.name.lower() for x in shared.sd_upscalers].index(upscaler_index.lower())
processing.fix_seed(p)
upscaler = shared.sd_upscalers[upscaler_index]
|