mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-09-12 20:48:22 +00:00
Xformers is now properly disabled when --cpu used.
Added --windows-standalone-build option, currently it only opens makes the code open up comfyui in the browser.
This commit is contained in:
@@ -14,9 +14,8 @@ import model_management
|
||||
try:
|
||||
import xformers
|
||||
import xformers.ops
|
||||
XFORMERS_IS_AVAILBLE = True
|
||||
except:
|
||||
XFORMERS_IS_AVAILBLE = False
|
||||
pass
|
||||
|
||||
# CrossAttn precision handling
|
||||
import os
|
||||
@@ -481,7 +480,7 @@ class CrossAttentionPytorch(nn.Module):
|
||||
return self.to_out(out)
|
||||
|
||||
import sys
|
||||
if XFORMERS_IS_AVAILBLE == False or "--disable-xformers" in sys.argv:
|
||||
if model_management.xformers_enabled() == False:
|
||||
if "--use-split-cross-attention" in sys.argv:
|
||||
print("Using split optimization for cross attention")
|
||||
CrossAttention = CrossAttentionDoggettx
|
||||
|
Reference in New Issue
Block a user