Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
diffusers
Commits
5f150c4c
Unverified
Commit
5f150c4c
authored
Mar 01, 2024
by
Sayak Paul
Committed by
GitHub
Mar 01, 2024
Browse files
fix: loading problem for sdxl lora dreambooth (#7166)
parent
66f8bd68
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/dreambooth/train_dreambooth_lora_sdxl.py
examples/dreambooth/train_dreambooth_lora_sdxl.py
+1
-1
No files found.
examples/dreambooth/train_dreambooth_lora_sdxl.py
View file @
5f150c4c
...
...
@@ -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_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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment