mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-01-26 19:09:45 +00:00
fix
This commit is contained in:
@@ -95,6 +95,7 @@ class FooocusInpaintPatcher(ControlModelPatcher):
|
||||
lora_keys.update({x: x for x in unet.model.state_dict().keys()})
|
||||
loaded_lora = load_fooocus_patch(self.state_dict, lora_keys)
|
||||
|
||||
unet.lora_loader.clear_patches() # TODO
|
||||
patched = unet.lora_loader.add_patches(loaded_lora, 1.0)
|
||||
|
||||
not_patched_count = sum(1 for x in loaded_lora if x not in patched)
|
||||
|
||||
Reference in New Issue
Block a user