diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-31 06:13:07 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-31 06:13:07 +0000 |
commit | dca121e9035ba36b3f7484c8a31a7776d85c0960 (patch) | |
tree | 746c219c39a59f69673755ff8c42a07f5568a638 /modules | |
parent | 0af4127fd14360ebb12c6569d98aebf8047abbfc (diff) | |
download | stable-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.py | 4 |
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()
|