Generate grid preview for progress image

This commit is contained in:
Unnoen
2022-10-19 21:38:10 +11:00
committed by AUTOMATIC1111
parent 24694e5983
commit 4fdb53c1e9
3 changed files with 30 additions and 2 deletions

View File

@@ -318,7 +318,10 @@ def check_progress_call(id_part):
if shared.parallel_processing_allowed:
if shared.state.sampling_step - shared.state.current_image_sampling_step >= opts.show_progress_every_n_steps and shared.state.current_latent is not None:
shared.state.current_image = modules.sd_samplers.sample_to_image(shared.state.current_latent)
if opts.progress_decode_combined:
shared.state.current_image = modules.sd_samplers.samples_to_image_grid_combined(shared.state.current_latent)
else:
shared.state.current_image = modules.sd_samplers.samples_to_image_grid(shared.state.current_latent)
shared.state.current_image_sampling_step = shared.state.sampling_step
image = shared.state.current_image