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
8e145357
Unverified
Commit
8e145357
authored
Apr 11, 2024
by
Yiqin Zhao
Committed by
GitHub
Apr 11, 2024
Browse files
Fixed YAML loading. (#7579)
parent
0bee4d33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py
...diffusers/pipelines/stable_diffusion/convert_from_ckpt.py
+2
-0
No files found.
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py
View file @
8e145357
...
@@ -1843,6 +1843,8 @@ def download_controlnet_from_original_ckpt(
...
@@ -1843,6 +1843,8 @@ def download_controlnet_from_original_ckpt(
while
"state_dict"
in
checkpoint
:
while
"state_dict"
in
checkpoint
:
checkpoint
=
checkpoint
[
"state_dict"
]
checkpoint
=
checkpoint
[
"state_dict"
]
with
open
(
original_config_file
,
"r"
)
as
f
:
original_config_file
=
f
.
read
()
original_config
=
yaml
.
safe_load
(
original_config_file
)
original_config
=
yaml
.
safe_load
(
original_config_file
)
if
num_in_channels
is
not
None
:
if
num_in_channels
is
not
None
:
...
...
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