Prevent upscaling when None is selected for SD upscale

This commit is contained in:
Jocke 2022-10-02 16:10:41 +02:00 committed by AUTOMATIC1111
parent c0389eb307
commit 2ef69df9a7

View file

@ -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()