mirror of
https://github.com/sd-webui/stable-diffusion-webui.git
synced 2024-12-15 07:12:58 +03:00
Fix some things breaking when "Save individual images" is unticked (#503)
Co-authored-by: hlky <106811348+hlky@users.noreply.github.com>
This commit is contained in:
parent
03998f0dfb
commit
9b07031570
8
webui.py
8
webui.py
@ -989,10 +989,10 @@ skip_grid, sort_samples, sampler_name, ddim_eta, n_iter, batch_size, i, denoisin
|
|||||||
save_sample(image, sample_path_i, filename, jpg_sample, prompts, seeds, width, height, steps, cfg_scale,
|
save_sample(image, sample_path_i, filename, jpg_sample, prompts, seeds, width, height, steps, cfg_scale,
|
||||||
normalize_prompt_weights, use_GFPGAN, write_info_files, write_sample_info_to_log_file, prompt_matrix, init_img, uses_loopback, uses_random_seed_loopback, skip_save,
|
normalize_prompt_weights, use_GFPGAN, write_info_files, write_sample_info_to_log_file, prompt_matrix, init_img, uses_loopback, uses_random_seed_loopback, skip_save,
|
||||||
skip_grid, sort_samples, sampler_name, ddim_eta, n_iter, batch_size, i, denoising_strength, resize_mode, False)
|
skip_grid, sort_samples, sampler_name, ddim_eta, n_iter, batch_size, i, denoising_strength, resize_mode, False)
|
||||||
if add_original_image or not simple_templating:
|
if add_original_image or not simple_templating:
|
||||||
output_images.append(image)
|
output_images.append(image)
|
||||||
if simple_templating:
|
if simple_templating:
|
||||||
grid_captions.append( captions[i] )
|
grid_captions.append( captions[i] )
|
||||||
|
|
||||||
if opt.optimized:
|
if opt.optimized:
|
||||||
mem = torch.cuda.memory_allocated()/1e6
|
mem = torch.cuda.memory_allocated()/1e6
|
||||||
|
Loading…
Reference in New Issue
Block a user