Unverified Commit 5f150c4c authored by Sayak Paul's avatar Sayak Paul Committed by GitHub
Browse files

fix: loading problem for sdxl lora dreambooth (#7166)

parent 66f8bd68
...@@ -1178,7 +1178,7 @@ def main(args): ...@@ -1178,7 +1178,7 @@ def main(args):
_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.", text_encoder=text_encoder_one_)
_set_state_dict_into_text_encoder( _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 # Make sure the trainable params are in float32. This is again needed since the base models
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment