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
3067da12
Unverified
Commit
3067da12
authored
Feb 20, 2024
by
Dhruv Nair
Committed by
GitHub
Feb 20, 2024
Browse files
Fix `load_model_dict_into_meta` for ControlNet `from_single_file` (#7034)
update
parent
6bceaea3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/loaders/single_file_utils.py
src/diffusers/loaders/single_file_utils.py
+1
-1
No files found.
src/diffusers/loaders/single_file_utils.py
View file @
3067da12
...
...
@@ -876,7 +876,7 @@ def create_diffusers_controlnet_model_from_ldm(
from
..models.modeling_utils
import
load_model_dict_into_meta
unexpected_keys
=
load_model_dict_into_meta
(
controlnet
,
diffusers_format_controlnet_checkpoint
,
torch_
dtype
=
torch_dtype
controlnet
,
diffusers_format_controlnet_checkpoint
,
dtype
=
torch_dtype
)
if
controlnet
.
_keys_to_ignore_on_load_unexpected
is
not
None
:
for
pat
in
controlnet
.
_keys_to_ignore_on_load_unexpected
:
...
...
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