mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-24 21:32:03 -08:00
Unload sd_model before loading the other
This commit is contained in:
parent
5c9b3625fa
commit
af758e97fa
5 changed files with 34 additions and 10 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue