Merge branch 'main' of github.com:lstein/stable-diffusion into main

This fixes issue with grid generation.
This commit is contained in:
Lincoln Stein
2022-08-29 13:39:59 -04:00
4 changed files with 294 additions and 291 deletions

View File

@@ -90,10 +90,11 @@ class PngWriter:
height = image_list[0].height
grid_img = Image.new('RGB', (width * cols, height * rows))
i = 0
for r in range(0, rows):
for c in range(0, cols):
i = r * rows + c
grid_img.paste(image_list[i], (c * width, r * height))
i = i + 1
return grid_img