rahul7star commited on
Commit
fa46cad
·
verified ·
1 Parent(s): 9d9e3d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -36,25 +36,25 @@ pipe.to("cuda")
36
  # ------------------------
37
  # ATTENTION + PIPE INFO
38
  # ------------------------
39
- def pipeline_debug_info():
40
  info = []
41
- info.append("=== PIPELINE DEBUG INFO ===")
42
- info.append(f"UNet attention backend: {pipe.unet.config.attn_implementation}")
43
- info.append(f"Transformer attention backend: {pipe.transformer.config.attn_implementation}")
44
-
45
- # Processor classes
46
  try:
47
- info.append(f"UNet mid-block processor: {type(pipe.unet.mid_block.attentions[0].processor)}")
48
  except:
49
- info.append("UNet mid-block processor: <not found>")
50
 
 
51
  try:
52
- info.append(f"Transformer block processor: {type(pipe.transformer.blocks[0].attn.processor)}")
53
- except:
54
- info.append("Transformer block processor: <not found>")
 
55
 
56
  return "\n".join(info)
57
 
 
58
  # ------------------------
59
  # IMAGE GENERATOR
60
  # ------------------------
 
36
  # ------------------------
37
  # ATTENTION + PIPE INFO
38
  # ------------------------
39
+ def pipeline_debug_info(pipe):
40
  info = []
41
+
42
+ # Transformer config
 
 
 
43
  try:
44
+ info.append(f"Transformer attention backend: {pipe.transformer.config.attn_implementation}")
45
  except:
46
+ info.append("No transformer.attn_implementation")
47
 
48
+ # Processor class
49
  try:
50
+ proc = pipe.transformer.blocks[0].attn.processor
51
+ info.append(f"Processor type: {type(proc)}")
52
+ except Exception as e:
53
+ info.append(f"Processor error: {e}")
54
 
55
  return "\n".join(info)
56
 
57
+
58
  # ------------------------
59
  # IMAGE GENERATOR
60
  # ------------------------