diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-18 14:23:38 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-18 14:23:38 +0000 |
commit | cbf15edbf90a68a08eeab40af5df577ba4ac90b6 (patch) | |
tree | cc83980e4a3dbf7d23eeeb6f6d892c97f8dfc530 /modules/processing.py | |
parent | ec1924ee5789b72c31c65932b549c59ccae0cdd6 (diff) | |
download | stable-diffusion-webui-gfx803-cbf15edbf90a68a08eeab40af5df577ba4ac90b6.tar.gz stable-diffusion-webui-gfx803-cbf15edbf90a68a08eeab40af5df577ba4ac90b6.tar.bz2 stable-diffusion-webui-gfx803-cbf15edbf90a68a08eeab40af5df577ba4ac90b6.zip |
remove dependence on TQDM for sampler progress/interrupt functionality
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/modules/processing.py b/modules/processing.py index deb6125e..346eea88 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -402,12 +402,6 @@ def process_images(p: StableDiffusionProcessing) -> Processed: with devices.autocast():
samples_ddim = p.sample(conditioning=c, unconditional_conditioning=uc, seeds=seeds, subseeds=subseeds, subseed_strength=p.subseed_strength)
- if state.interrupted or state.skipped:
-
- # if we are interrupted, sample returns just noise
- # use the image collected previously in sampler loop
- samples_ddim = shared.state.current_latent
-
samples_ddim = samples_ddim.to(devices.dtype_vae)
x_samples_ddim = decode_first_stage(p.sd_model, samples_ddim)
x_samples_ddim = torch.clamp((x_samples_ddim + 1.0) / 2.0, min=0.0, max=1.0)
|