diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-11-02 09:12:32 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-11-02 09:12:32 +0000 |
commit | 4a8cf01f6f7f072cc9c67d6b31662384b212dd9c (patch) | |
tree | 2d9cf416afbff669f3aef3bfcaa11a7803e75bba /modules/api/api.py | |
parent | e526f6b378e908d0a4a15661aaa1f67ecbaef1ff (diff) | |
download | stable-diffusion-webui-gfx803-4a8cf01f6f7f072cc9c67d6b31662384b212dd9c.tar.gz stable-diffusion-webui-gfx803-4a8cf01f6f7f072cc9c67d6b31662384b212dd9c.tar.bz2 stable-diffusion-webui-gfx803-4a8cf01f6f7f072cc9c67d6b31662384b212dd9c.zip |
remove duplicate code from #3970
Diffstat (limited to 'modules/api/api.py')
-rw-r--r-- | modules/api/api.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/modules/api/api.py b/modules/api/api.py index b3d85e46..71c9c160 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -178,15 +178,7 @@ class Api: progress = min(progress, 1) - # copy from check_progress_call of ui.py - - if shared.parallel_processing_allowed: - if shared.state.sampling_step - shared.state.current_image_sampling_step >= shared.opts.show_progress_every_n_steps and shared.state.current_latent is not None: - if shared.opts.show_progress_grid: - shared.state.current_image = samples_to_image_grid(shared.state.current_latent) - else: - shared.state.current_image = sample_to_image(shared.state.current_latent) - shared.state.current_image_sampling_step = shared.state.sampling_step + shared.state.set_current_image() current_image = None if shared.state.current_image and not req.skip_current_image: |