mirror of
https://github.com/Sygil-Dev/sygil-webui.git
synced 2024-12-15 06:21:34 +03:00
fix img2img ValueError: negative shift count
This commit is contained in:
parent
4ac26312ff
commit
7613b17d59
5
webui.py
5
webui.py
@ -707,7 +707,10 @@ def process_images(
|
||||
base_count += 1
|
||||
|
||||
if (prompt_matrix or not skip_grid) and not do_not_save_grid:
|
||||
grid = image_grid(output_images, batch_size, force_n_rows=1 << ((len(prompt_matrix_parts)-1)//2))
|
||||
if prompt_matrix:
|
||||
grid = image_grid(output_images, batch_size, force_n_rows=1 << ((len(prompt_matrix_parts)-1)//2))
|
||||
else:
|
||||
grid = image_grid(output_images, batch_size)
|
||||
|
||||
if prompt_matrix:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user