remove duplicate code from #3970

This commit is contained in:
AUTOMATIC
2022-11-02 12:12:32 +03:00
parent e526f6b378
commit 4a8cf01f6f
3 changed files with 16 additions and 18 deletions

View File

@@ -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: