mirror of
https://github.com/sd-webui/stable-diffusion-webui.git
synced 2024-12-14 23:02:00 +03:00
Fix duplicates
This was another regression caused by
82770bacae
.
Fixes #147. Fixes #148.
This commit is contained in:
parent
a3456f9992
commit
ceecb1a33d
8
webui.py
8
webui.py
@ -1069,17 +1069,17 @@ skip_grid, sort_samples, sampler_name, ddim_eta, n_iter, batch_size, i, denoisin
|
||||
else:
|
||||
grid = image_grid(output_images, batch_size)
|
||||
|
||||
if prompt_matrix and not prompt.startswith("@"):
|
||||
if prompt_matrix:
|
||||
if not prompt.startswith("@"):
|
||||
try:
|
||||
grid = draw_prompt_matrix(grid, width, height, prompt_matrix_parts)
|
||||
except:
|
||||
import traceback
|
||||
print("Error creating prompt_matrix text:", file=sys.stderr)
|
||||
print(traceback.format_exc(), file=sys.stderr)
|
||||
|
||||
output_images.insert(0, grid)
|
||||
#else:
|
||||
# grid = image_grid(output_images, batch_size)
|
||||
else:
|
||||
grid = image_grid(output_images, batch_size)
|
||||
|
||||
grid_count = get_next_sequence_number(outpath, 'grid-')
|
||||
grid_file = f"grid-{grid_count:05}-{seed}_{prompts[i].replace(' ', '_').translate({ord(x): '' for x in invalid_filename_chars})[:128]}.{grid_ext}"
|
||||
|
Loading…
Reference in New Issue
Block a user