mirror of
https://github.com/Coyote-A/ultimate-upscale-for-automatic1111.git
synced 2026-04-25 08:49:11 +00:00
handle empty image
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user