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
d82157b3
Unverified
Commit
d82157b3
authored
Sep 12, 2023
by
zhiqiang
Committed by
GitHub
Sep 11, 2023
Browse files
[Bug Fix] Should pass the dtype instead of torch_dtype (#4917)
.
parent
93579650
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/loaders.py
src/diffusers/loaders.py
+1
-1
No files found.
src/diffusers/loaders.py
View file @
d82157b3
...
@@ -2381,7 +2381,7 @@ class FromOriginalVAEMixin:
...
@@ -2381,7 +2381,7 @@ class FromOriginalVAEMixin:
vae
.
load_state_dict
(
converted_vae_checkpoint
)
vae
.
load_state_dict
(
converted_vae_checkpoint
)
if
torch_dtype
is
not
None
:
if
torch_dtype
is
not
None
:
vae
.
to
(
torch_
dtype
=
torch_dtype
)
vae
.
to
(
dtype
=
torch_dtype
)
return
vae
return
vae
...
...
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