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
394b8fb9
Unverified
Commit
394b8fb9
authored
Jun 19, 2024
by
YiYi Xu
Committed by
GitHub
Jun 19, 2024
Browse files
fix from_single_file for checkpoints with t5 (#8631)
fix single file
parent
a1d55e14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/diffusers/loaders/single_file_utils.py
src/diffusers/loaders/single_file_utils.py
+1
-0
No files found.
src/diffusers/loaders/single_file_utils.py
View file @
394b8fb9
...
@@ -1808,3 +1808,4 @@ def create_diffusers_t5_model_from_checkpoint(
...
@@ -1808,3 +1808,4 @@ def create_diffusers_t5_model_from_checkpoint(
else
:
else
:
model
.
load_state_dict
(
diffusers_format_checkpoint
)
model
.
load_state_dict
(
diffusers_format_checkpoint
)
return
model
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