You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: comfy/ldm/modules/attention.py
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -20,8 +20,11 @@
20
20
ifmodel_management.sage_attention_enabled():
21
21
try:
22
22
fromsageattentionimportsageattn
23
-
exceptModuleNotFoundError:
24
-
logging.error(f"\n\nTo use the `--use-sage-attention` feature, the `sageattention` package must be installed first.\ncommand:\n\t{sys.executable} -m pip install sageattention")
23
+
exceptModuleNotFoundErrorase:
24
+
ife.name=="sageattention":
25
+
logging.error(f"\n\nTo use the `--use-sage-attention` feature, the `sageattention` package must be installed first.\ncommand:\n\t{sys.executable} -m pip install sageattention")
0 commit comments