Skip to content

Commit 5f150c4

Browse files
authored
fix: loading problem for sdxl lora dreambooth (#7166)
1 parent 66f8bd6 commit 5f150c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/dreambooth/train_dreambooth_lora_sdxl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ def load_model_hook(models, input_dir):
11781178
_set_state_dict_into_text_encoder(lora_state_dict, prefix="text_encoder.", text_encoder=text_encoder_one_)
11791179

11801180
_set_state_dict_into_text_encoder(
1181-
lora_state_dict, prefix="text_encoder_2.", text_encoder=text_encoder_one_
1181+
lora_state_dict, prefix="text_encoder_2.", text_encoder=text_encoder_two_
11821182
)
11831183

11841184
# Make sure the trainable params are in float32. This is again needed since the base models

0 commit comments

Comments
 (0)