handle empty image

This commit is contained in:
Jopezzia
2023-01-05 23:20:52 +03:00
parent 90ef942763
commit be762bc026

View File

@@ -416,6 +416,8 @@ class Script(scripts.Script):
# Init image
init_img = p.init_images[0]
if init_img == None:
return Processed(p, [], seed, "Empty image")
init_img = images.flatten(init_img, opts.img2img_background_color)
# Upscaling