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
chenpangpang
ComfyUI
Commits
7339479b
Commit
7339479b
authored
Nov 13, 2023
by
comfyanonymous
Browse files
Disable xformers when it can't load properly.
parent
f12ec559
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
comfy/model_management.py
comfy/model_management.py
+4
-0
No files found.
comfy/model_management.py
View file @
7339479b
...
@@ -133,6 +133,10 @@ else:
...
@@ -133,6 +133,10 @@ else:
import
xformers
import
xformers
import
xformers.ops
import
xformers.ops
XFORMERS_IS_AVAILABLE
=
True
XFORMERS_IS_AVAILABLE
=
True
try
:
XFORMERS_IS_AVAILABLE
=
xformers
.
_has_cpp_library
except
:
pass
try
:
try
:
XFORMERS_VERSION
=
xformers
.
version
.
__version__
XFORMERS_VERSION
=
xformers
.
version
.
__version__
print
(
"xformers version:"
,
XFORMERS_VERSION
)
print
(
"xformers version:"
,
XFORMERS_VERSION
)
...
...
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