mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-10 18:09:58 +00:00
forge 2.0.0
see also discussions
This commit is contained in:
@@ -780,11 +780,12 @@ need_global_unload = False
|
||||
def process_images(p: StableDiffusionProcessing) -> Processed:
|
||||
global need_global_unload
|
||||
|
||||
if need_global_unload:
|
||||
need_global_unload = False
|
||||
p.sd_model, just_reloaded = forge_model_reload()
|
||||
|
||||
if need_global_unload and not just_reloaded:
|
||||
memory_management.unload_all_models()
|
||||
|
||||
p.sd_model = forge_model_reload()
|
||||
need_global_unload = False
|
||||
|
||||
if p.scripts is not None:
|
||||
p.scripts.before_process(p)
|
||||
|
||||
Reference in New Issue
Block a user