diff options
author | Unnoen <Unnoen@users.noreply.github.com> | 2022-10-19 10:38:10 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-22 17:36:04 +0000 |
commit | 4fdb53c1e9962507fc8336dad9a0fabfe6c418c0 (patch) | |
tree | 366c802f3e780dbed7f7c28adda11da39292b21e /modules/ui.py | |
parent | 24694e5983d0944b901892cb101878e6dec89a20 (diff) | |
download | stable-diffusion-webui-gfx803-4fdb53c1e9962507fc8336dad9a0fabfe6c418c0.tar.gz stable-diffusion-webui-gfx803-4fdb53c1e9962507fc8336dad9a0fabfe6c418c0.tar.bz2 stable-diffusion-webui-gfx803-4fdb53c1e9962507fc8336dad9a0fabfe6c418c0.zip |
Generate grid preview for progress image
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py index 56c233ab..de0abc7e 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -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
|