Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
b1502763
Unverified
Commit
b1502763
authored
Mar 06, 2025
by
hlky
Committed by
GitHub
Mar 06, 2025
Browse files
Fix loading OneTrainer Flux LoRA (#10978)
Co-authored-by:
Sayak Paul
<
spsayakpaul@gmail.com
>
parent
6e2a93de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/diffusers/loaders/lora_conversion_utils.py
src/diffusers/loaders/lora_conversion_utils.py
+1
-0
No files found.
src/diffusers/loaders/lora_conversion_utils.py
View file @
b1502763
...
...
@@ -654,6 +654,7 @@ def _convert_kohya_flux_lora_to_diffusers(state_dict):
_convert
(
k
,
diffusers_key
,
state_dict
,
new_state_dict
)
remaining_all_unet
=
False
if
state_dict
:
remaining_all_unet
=
all
(
k
.
startswith
(
"lora_unet_"
)
for
k
in
state_dict
)
if
remaining_all_unet
:
...
...
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