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
OpenDAS
diffusers
Commits
17808a09
Unverified
Commit
17808a09
authored
Feb 08, 2024
by
Ehsan Akhgari
Committed by
GitHub
Feb 08, 2024
Browse files
Fix bug when converting checkpoint to diffusers format (#6900)
This fixes #6899.
parent
491a933a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py
...diffusers/pipelines/stable_diffusion/convert_from_ckpt.py
+3
-0
No files found.
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py
View file @
17808a09
...
...
@@ -1320,6 +1320,9 @@ def download_from_original_stable_diffusion_ckpt(
else
:
with
open
(
original_config_file
,
"r"
)
as
f
:
original_config_file
=
f
.
read
()
else
:
with
open
(
original_config_file
,
"r"
)
as
f
:
original_config_file
=
f
.
read
()
original_config
=
yaml
.
safe_load
(
original_config_file
)
...
...
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