diff options
author | MalumaDev <piano.lu92@gmail.com> | 2022-10-18 17:27:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 17:27:30 +0200 |
commit | c2765c9bcd264f5a8922348cd03521cb2ff306b3 (patch) | |
tree | 475fb1048477fac8f0b9afc741b6a8eefeb339d7 /modules/processing.py | |
parent | 1997ccff13fc75af223f571e8c927c3d77273dd9 (diff) | |
parent | c1093b8051606f0ac90506b7114c4b55d0447c70 (diff) |
Merge branch 'master' into test_resolve_conflicts
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/modules/processing.py b/modules/processing.py index 6c4bde6e..e965d41c 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -419,11 +419,6 @@ def process_images(p: StableDiffusionProcessing) -> Processed: 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)
|