yyk19 commited on
Commit
0596782
1 Parent(s): b928f57

debug xformers.

Browse files
ldm/modules/attention.py CHANGED
@@ -13,7 +13,8 @@ try:
13
  import xformers
14
  import xformers.ops
15
  XFORMERS_IS_AVAILBLE = True
16
- except:
 
17
  XFORMERS_IS_AVAILBLE = False
18
  # XFORMERS_IS_AVAILBLE = False
19
  DETERMISTIC = False
 
13
  import xformers
14
  import xformers.ops
15
  XFORMERS_IS_AVAILBLE = True
16
+ except Exception as e:
17
+ print("xformer", e)
18
  XFORMERS_IS_AVAILBLE = False
19
  # XFORMERS_IS_AVAILBLE = False
20
  DETERMISTIC = False
ldm/modules/diffusionmodules/model.py CHANGED
@@ -12,7 +12,8 @@ try:
12
  import xformers
13
  import xformers.ops
14
  XFORMERS_IS_AVAILBLE = True
15
- except:
 
16
  XFORMERS_IS_AVAILBLE = False
17
  print("No module 'xformers'. Proceeding without it.")
18
  # XFORMERS_IS_AVAILBLE = False
 
12
  import xformers
13
  import xformers.ops
14
  XFORMERS_IS_AVAILBLE = True
15
+ except Exception as e:
16
+ print("xformer", e)
17
  XFORMERS_IS_AVAILBLE = False
18
  print("No module 'xformers'. Proceeding without it.")
19
  # XFORMERS_IS_AVAILBLE = False