f u
This commit is contained in:
hlky 2022-08-24 15:44:34 +01:00
parent 10c856011c
commit b2685b0a1b
No known key found for this signature in database
GPG Key ID: 55A99F1E80D907D5

View File

@ -709,7 +709,8 @@ def img2img(prompt: str, init_img, ddim_steps: int, use_GFPGAN: bool, prompt_mat
grid_count = len(os.listdir(outpath)) - 1 grid_count = len(os.listdir(outpath)) - 1
grid = image_grid(history, batch_size, force_n_rows=1) grid = image_grid(history, batch_size, force_n_rows=1)
grid.save(os.path.join(outpath, f'grid-{grid_count:04}.{opt.grid_format}')) grid_file = f"grid-{grid_count:05}-{seed}_{prompt.replace(' ', '_').translate({ord(x): '' for x in invalid_filename_chars})[:128]}.jpg"
grid.save(os.path.join(outpath, grid_file), 'jpeg', quality=80, optimize=True)
output_images = history output_images = history
seed = initial_seed seed = initial_seed