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
d0979f52
Commit
d0979f52
authored
Jul 11, 2023
by
Patrick von Platen
Browse files
quick fix to make sure sdxl conversion works
parent
fcb0da7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py
...diffusers/pipelines/stable_diffusion/convert_from_ckpt.py
+2
-1
No files found.
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py
View file @
d0979f52
...
...
@@ -1256,7 +1256,8 @@ def download_from_original_stable_diffusion_ckpt(
elif
num_in_channels
is
None
:
num_in_channels
=
4
original_config
[
"model"
][
"params"
][
"unet_config"
][
"params"
][
"in_channels"
]
=
num_in_channels
if
"unet_config"
in
original_config
.
model
.
params
:
original_config
[
"model"
][
"params"
][
"unet_config"
][
"params"
][
"in_channels"
]
=
num_in_channels
if
(
"parameterization"
in
original_config
[
"model"
][
"params"
]
...
...
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