aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-31 06:13:07 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-31 06:13:07 +0000
commitdca121e9035ba36b3f7484c8a31a7776d85c0960 (patch)
tree746c219c39a59f69673755ff8c42a07f5568a638 /modules
parent0af4127fd14360ebb12c6569d98aebf8047abbfc (diff)
downloadstable-diffusion-webui-gfx803-dca121e9035ba36b3f7484c8a31a7776d85c0960.tar.gz
stable-diffusion-webui-gfx803-dca121e9035ba36b3f7484c8a31a7776d85c0960.tar.bz2
stable-diffusion-webui-gfx803-dca121e9035ba36b3f7484c8a31a7776d85c0960.zip
set the field to None instead
Diffstat (limited to 'modules')
-rw-r--r--modules/processing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/processing.py b/modules/processing.py
index b09433b0..35e7b87e 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -1076,13 +1076,13 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
current = shared.sd_model.sd_checkpoint_info
try:
if self.hr_checkpoint_info is not None:
- del self.sampler
+ self.sampler = None
sd_models.reload_model_weights(info=self.hr_checkpoint_info)
devices.torch_gc()
return self.sample_hr_pass(samples, decoded_samples, seeds, subseeds, subseed_strength, prompts)
finally:
- del self.sampler
+ self.sampler = None
sd_models.reload_model_weights(info=current)
devices.torch_gc()