This commit is contained in:
layerdiffusion
2024-08-29 19:18:40 -07:00
parent 95e16f7204
commit c239200705

View File

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