aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-10-22 17:48:13 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-10-22 17:48:13 +0000
commitd213d6ca6f90094cb45c11e2f3cb37d25a8d1f94 (patch)
treef2300e2c0f00e8c04072187479f0e13ee94b0b8f /modules/ui.py
parent4fdb53c1e9962507fc8336dad9a0fabfe6c418c0 (diff)
downloadstable-diffusion-webui-gfx803-d213d6ca6f90094cb45c11e2f3cb37d25a8d1f94.tar.gz
stable-diffusion-webui-gfx803-d213d6ca6f90094cb45c11e2f3cb37d25a8d1f94.tar.bz2
stable-diffusion-webui-gfx803-d213d6ca6f90094cb45c11e2f3cb37d25a8d1f94.zip
removed the option to use 2x more memory when generating previews
added an option to always only show one image in previews removed duplicate code
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/ui.py b/modules/ui.py
index de0abc7e..ffa14cac 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -318,10 +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:
- if opts.progress_decode_combined:
- shared.state.current_image = modules.sd_samplers.samples_to_image_grid_combined(shared.state.current_latent)
- else:
+ if opts.show_progress_grid:
shared.state.current_image = modules.sd_samplers.samples_to_image_grid(shared.state.current_latent)
+ else:
+ shared.state.current_image = modules.sd_samplers.sample_to_image(shared.state.current_latent)
shared.state.current_image_sampling_step = shared.state.sampling_step
image = shared.state.current_image