So apparently SD can return an array of zero... who knew, Implemented check for that as well. Interupting generation should no longer produce crashes

pull/56/head
jmsether 2023-04-23 16:33:38 -06:00
parent 38b64d866e
commit 7f56865112
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ def renderImg2Img(
processed = process_images(p)
# For those that use Image grids this will make sure that ffmpeg does not crash out
if (processed.images[0].size[0] != processed.images[-1].size[0]):
if (len(processed.images) > 1) and (processed.images[0].size[0] != processed.images[-1].size[0]):
processed.images.pop(0)
print("\nGrid image detected applying patch")