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
dbce14da
Unverified
Commit
dbce14da
authored
Oct 25, 2023
by
Yi-Xuan XU
Committed by
GitHub
Oct 25, 2023
Browse files
fix a bug on `torch_dtype` argument in `from_single_file` of ControlNetModel (#5528)
fix wrong parameter
parent
71ad0260
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 @
dbce14da
...
@@ -3171,7 +3171,7 @@ class FromOriginalControlnetMixin:
...
@@ -3171,7 +3171,7 @@ class FromOriginalControlnetMixin:
)
)
if
torch_dtype
is
not
None
:
if
torch_dtype
is
not
None
:
controlnet
.
to
(
torch_
dtype
=
torch_dtype
)
controlnet
.
to
(
dtype
=
torch_dtype
)
return
controlnet
return
controlnet
...
...
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