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
1e1875f6
Commit
1e1875f6
authored
Apr 09, 2023
by
comfyanonymous
Browse files
Print xformers version and warning about 0.0.18
parent
90581684
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
comfy/model_management.py
comfy/model_management.py
+15
-7
No files found.
comfy/model_management.py
View file @
1e1875f6
...
...
@@ -45,6 +45,8 @@ try:
except
:
OOM_EXCEPTION
=
Exception
XFORMERS_VERSION
=
""
XFORMERS_ENABLED_VAE
=
True
if
args
.
disable_xformers
:
XFORMERS_IS_AVAILABLE
=
False
else
:
...
...
@@ -52,6 +54,17 @@ else:
import
xformers
import
xformers.ops
XFORMERS_IS_AVAILABLE
=
True
try
:
XFORMERS_VERSION
=
xformers
.
version
.
__version__
print
(
"xformers version:"
,
XFORMERS_VERSION
)
if
XFORMERS_VERSION
.
startswith
(
"0.0.18"
):
print
()
print
(
"WARNING: This version of xformers has a major bug where you will get black images when generating high resolution images."
)
print
(
"Please downgrade or upgrade xformers to a different version."
)
print
()
XFORMERS_ENABLED_VAE
=
False
except
:
pass
except
:
XFORMERS_IS_AVAILABLE
=
False
...
...
@@ -223,13 +236,8 @@ def xformers_enabled_vae():
enabled
=
xformers_enabled
()
if
not
enabled
:
return
False
try
:
#0.0.18 has a bug where Nan is returned when inputs are too big (1152x1920 res images and above)
if
xformers
.
version
.
__version__
==
"0.0.18"
:
return
False
except
:
pass
return
enabled
return
XFORMERS_ENABLED_VAE
def
pytorch_attention_enabled
():
return
ENABLE_PYTORCH_ATTENTION
...
...
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