mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-30 03:01:15 +00:00
allow sdupscale to accept upscaler name
This commit is contained in:
@@ -25,6 +25,8 @@ class Script(scripts.Script):
|
|||||||
return [info, overlap, upscaler_index, scale_factor]
|
return [info, overlap, upscaler_index, scale_factor]
|
||||||
|
|
||||||
def run(self, p, _, 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)
|
processing.fix_seed(p)
|
||||||
upscaler = shared.sd_upscalers[upscaler_index]
|
upscaler = shared.sd_upscalers[upscaler_index]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user