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