Skip to content

Commit b150276

Browse files
hlkysayakpaul
andauthored
Fix loading OneTrainer Flux LoRA (#10978)
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
1 parent 6e2a93d commit b150276

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/diffusers/loaders/lora_conversion_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,7 @@ def _convert(original_key, diffusers_key, state_dict, new_state_dict):
654654

655655
_convert(k, diffusers_key, state_dict, new_state_dict)
656656

657+
remaining_all_unet = False
657658
if state_dict:
658659
remaining_all_unet = all(k.startswith("lora_unet_") for k in state_dict)
659660
if remaining_all_unet:

0 commit comments

Comments
 (0)