Unload sd_model before loading the other

This commit is contained in:
Jairo Correa
2022-11-01 04:01:49 -03:00
parent 5c9b3625fa
commit af758e97fa
5 changed files with 34 additions and 10 deletions

View File

@@ -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