Skip to content

Commit c26a02d

Browse files
Update src/diffusers/loaders.py
Co-authored-by: Batuhan Taskaya <[email protected]>
1 parent 9ae0186 commit c26a02d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/diffusers/loaders.py

+1
Original file line numberDiff line numberDiff line change
@@ -1418,6 +1418,7 @@ def unload_lora_weights(self):
14181418
for _, module in self.unet.named_modules():
14191419
if hasattr(module, "old_forward") and module.old_forward is not None:
14201420
module.forward = module.old_forward
1421+
self.unet.aux_state_dict_populated = False
14211422

14221423
# Safe to call the following regardless of LoRA.
14231424
self._remove_text_encoder_monkey_patch()

0 commit comments

Comments
 (0)