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
80871ac5
Unverified
Commit
80871ac5
authored
Aug 22, 2023
by
Patrick von Platen
Committed by
GitHub
Aug 22, 2023
Browse files
fix bad error message when transformers is missing (#4714)
parent
6abc66ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/utils/import_utils.py
src/diffusers/utils/import_utils.py
+1
-1
No files found.
src/diffusers/utils/import_utils.py
View file @
80871ac5
...
...
@@ -567,7 +567,7 @@ class DummyObject(type):
"""
def
__getattr__
(
cls
,
key
):
if
key
.
startswith
(
"_"
)
and
key
!=
"_load_connected_pipes"
:
if
key
.
startswith
(
"_"
)
and
key
not
in
[
"_load_connected_pipes"
,
"_is_onnx"
]
:
return
super
().
__getattr__
(
cls
,
key
)
requires_backends
(
cls
,
cls
.
_backends
)
...
...
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