Skip to content

Commit

Permalink
fix: loading problem for sdxl lora dreambooth (huggingface#7166)
Browse files Browse the repository at this point in the history
  • Loading branch information
sayakpaul authored Mar 1, 2024
1 parent 66f8bd6 commit 5f150c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/dreambooth/train_dreambooth_lora_sdxl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ def load_model_hook(models, input_dir):
_set_state_dict_into_text_encoder(lora_state_dict, prefix="text_encoder.", text_encoder=text_encoder_one_)

_set_state_dict_into_text_encoder(
lora_state_dict, prefix="text_encoder_2.", text_encoder=text_encoder_one_
lora_state_dict, prefix="text_encoder_2.", text_encoder=text_encoder_two_
)

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

0 comments on commit 5f150c4

Please sign in to comment.