Prevent upscaling when None is selected for SD upscale
This commit is contained in:
parent
c0389eb307
commit
2ef69df9a7
|
@ -34,7 +34,11 @@ class Script(scripts.Script):
|
|||
seed = p.seed
|
||||
|
||||
init_img = p.init_images[0]
|
||||
|
||||
if(upscaler.name != "None"):
|
||||
img = upscaler.scaler.upscale(init_img, 2, upscaler.data_path)
|
||||
else:
|
||||
img = init_img
|
||||
|
||||
devices.torch_gc()
|
||||
|
||||
|
|
Loading…
Reference in New Issue