mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-09 05:39:47 +00:00
Merge pull request #6094 from AlUlkesh/master
Adding image numbers on grids
This commit is contained in:
@@ -43,6 +43,7 @@ def image_grid(imgs, batch_size=1, rows=None):
|
||||
grid = Image.new('RGB', size=(cols * w, rows * h), color='black')
|
||||
|
||||
for i, img in enumerate(imgs):
|
||||
script_callbacks.image_grid_loop_callback(img)
|
||||
grid.paste(img, box=(i % cols * w, i // cols * h))
|
||||
|
||||
return grid
|
||||
|
Reference in New Issue
Block a user