fix img2img ValueError: negative shift count

This commit is contained in:
hlky 2022-08-27 04:56:39 +01:00
parent 4ac26312ff
commit 7613b17d59
No known key found for this signature in database
GPG Key ID: 55A99F1E80D907D5

View File

@ -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: