aboutsummaryrefslogtreecommitdiffstats
path: root/modules/processing.py
diff options
context:
space:
mode:
authorKyuSeok Jung <wjdrbtjr495@gmail.com>2022-11-02 08:10:56 +0000
committerGitHub <noreply@github.com>2022-11-02 08:10:56 +0000
commitaf6fba247553e670ef5e2dcc1866279f9f065d6d (patch)
tree160b205b1c11025b0195c3857c8a73cccc0c80c5 /modules/processing.py
parent467cae167a3066ffa2b2a5e6f16dd42642219aba (diff)
parent95c6308ccd2e075d1fb804f5b98a4f0b07b87b7d (diff)
downloadstable-diffusion-webui-gfx803-af6fba247553e670ef5e2dcc1866279f9f065d6d.tar.gz
stable-diffusion-webui-gfx803-af6fba247553e670ef5e2dcc1866279f9f065d6d.tar.bz2
stable-diffusion-webui-gfx803-af6fba247553e670ef5e2dcc1866279f9f065d6d.zip
Merge branch 'master' into master
Diffstat (limited to 'modules/processing.py')
-rw-r--r--modules/processing.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/processing.py b/modules/processing.py
index 57d3a523..b541ee2b 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -202,6 +202,10 @@ class StableDiffusionProcessing():
def sample(self, conditioning, unconditional_conditioning, seeds, subseeds, subseed_strength):
raise NotImplementedError()
+ def close(self):
+ self.sd_model = None
+ self.sampler = None
+
class Processed:
def __init__(self, p: StableDiffusionProcessing, images_list, seed=-1, info="", subseed=None, all_prompts=None, all_seeds=None, all_subseeds=None, index_of_first_image=0, infotexts=None):
@@ -597,9 +601,6 @@ 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