Maintain patching related

1. fix several problems related to layerdiffuse not unloaded
2. fix several problems related to Fooocus inpaint
3. Slightly speed up on-the-fly LoRAs by precomputing them to computation dtype
This commit is contained in:
layerdiffusion
2024-08-30 15:14:32 -07:00
parent a8483a3f79
commit d1d0ec46aa
11 changed files with 119 additions and 101 deletions

View File

@@ -802,8 +802,6 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
memory_management.unload_all_models()
if need_global_unload:
p.sd_model.current_lora_hash = str([])
p.sd_model.forge_objects.unet.lora_loader.dirty = True
p.clear_prompt_cache()
need_global_unload = False