aboutsummaryrefslogtreecommitdiff
path: root/modules/ui.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-11-02 12:12:32 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-11-02 12:12:32 +0300
commit4a8cf01f6f7f072cc9c67d6b31662384b212dd9c (patch)
tree2d9cf416afbff669f3aef3bfcaa11a7803e75bba /modules/ui.py
parente526f6b378e908d0a4a15661aaa1f67ecbaef1ff (diff)
remove duplicate code from #3970
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 45cd8c3f..784439ba 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -277,15 +277,7 @@ def check_progress_call(id_part):
preview_visibility = gr_show(False)
if opts.show_progress_every_n_steps > 0:
- 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.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
-
+ shared.state.set_current_image()
image = shared.state.current_image
if image is None: