aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sd_samplers_common.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-08-22 06:55:20 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2023-08-22 06:55:20 +0000
commitd7c9c6142071359470347564913feb5b7a6c5c13 (patch)
treece5a81278ba7c21682e6945f5d5f9f30e3f2b9f3 /modules/sd_samplers_common.py
parent79fd17ee6332fafeee9f7fac8e150721dcefdb94 (diff)
downloadstable-diffusion-webui-gfx803-d7c9c6142071359470347564913feb5b7a6c5c13.tar.gz
stable-diffusion-webui-gfx803-d7c9c6142071359470347564913feb5b7a6c5c13.tar.bz2
stable-diffusion-webui-gfx803-d7c9c6142071359470347564913feb5b7a6c5c13.zip
attemped solution to the uncommon hanging problem that is seemingly caused by live previews working on the tensor as denoising
Diffstat (limited to 'modules/sd_samplers_common.py')
-rw-r--r--modules/sd_samplers_common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sd_samplers_common.py b/modules/sd_samplers_common.py
index 60fa161c..64845ea4 100644
--- a/modules/sd_samplers_common.py
+++ b/modules/sd_samplers_common.py
@@ -111,7 +111,7 @@ def images_tensor_to_samples(image, approximation=None, model=None):
def store_latent(decoded):
- state.current_latent = decoded
+ state.current_latent = decoded.clone()
if opts.live_previews_enable and opts.show_progress_every_n_steps > 0 and shared.state.sampling_step % opts.show_progress_every_n_steps == 0:
if not shared.parallel_processing_allowed: