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
214990e5
Unverified
Commit
214990e5
authored
Aug 20, 2024
by
Vishnu V Jaddipal
Committed by
GitHub
Aug 20, 2024
Browse files
Fix ```from_single_file``` for xl_inpaint (#9054)
parent
cf2c49b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/diffusers/loaders/single_file_utils.py
src/diffusers/loaders/single_file_utils.py
+2
-0
No files found.
src/diffusers/loaders/single_file_utils.py
View file @
214990e5
...
...
@@ -449,6 +449,8 @@ def infer_diffusers_model_type(checkpoint):
):
if
CHECKPOINT_KEY_NAMES
[
"v2"
]
in
checkpoint
and
checkpoint
[
CHECKPOINT_KEY_NAMES
[
"v2"
]].
shape
[
-
1
]
==
1024
:
model_type
=
"inpainting_v2"
elif
CHECKPOINT_KEY_NAMES
[
"xl_base"
]
in
checkpoint
:
model_type
=
"xl_inpaint"
else
:
model_type
=
"inpainting"
...
...
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