mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-06 01:44:57 -05:00
Merge branch 'main' of github.com:lstein/stable-diffusion into main
This fixes issue with grid generation.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user