aboutsummaryrefslogtreecommitdiff
path: root/modules/processing.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-11-01 13:54:00 +0300
committerGitHub <noreply@github.com>2022-11-01 13:54:00 +0300
commitf126986b76a4129061c85cd7213cde05a2f63b33 (patch)
tree9b1f77c09cae68200c15065c74c6d9dbcf3bf55b /modules/processing.py
parent087440404030fe4f704f3a568a35c86fb1b69259 (diff)
parentaf758e97fa2c4c853042f121af4e974be01e6696 (diff)
Merge pull request #4098 from jn-jairo/load-model
Unload sd_model before loading the other to solve the issue #3449
Diffstat (limited to 'modules/processing.py')
-rw-r--r--modules/processing.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/processing.py b/modules/processing.py
index b1df4918..57d3a523 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -597,6 +597,9 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
if p.scripts is not None:
p.scripts.postprocess(p, res)
+ p.sd_model = None
+ p.sampler = None
+
return res