aboutsummaryrefslogtreecommitdiffstats
path: root/modules/processing.py
diff options
context:
space:
mode:
authorJairo Correa <jn.j41r0@gmail.com>2022-11-01 07:01:49 +0000
committerJairo Correa <jn.j41r0@gmail.com>2022-11-01 07:01:49 +0000
commitaf758e97fa2c4c853042f121af4e974be01e6696 (patch)
treed2775792cce1a7084fe24ef8e5225a94d04a4bc0 /modules/processing.py
parent5c9b3625fa03f18649e1843b5e9f2df2d4de94f9 (diff)
downloadstable-diffusion-webui-gfx803-af758e97fa2c4c853042f121af4e974be01e6696.tar.gz
stable-diffusion-webui-gfx803-af758e97fa2c4c853042f121af4e974be01e6696.tar.bz2
stable-diffusion-webui-gfx803-af758e97fa2c4c853042f121af4e974be01e6696.zip
Unload sd_model before loading the other
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