tetrisd commited on
Commit
f74814e
Β·
1 Parent(s): e4b2dd1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -121,7 +121,7 @@ def main():
121
  out2 = pipe(new_prompt, num_inference_steps=inf_steps, generator=gen)
122
  image2 = np.array(out2.images[0]) / 255
123
  else:
124
- with trace(pipe) as tc:
125
  out = pipe(prompt, num_inference_steps=inf_steps, generator=gen)
126
  image = np.array(out.images[0]) / 255
127
  heat_map = tc.compute_global_heat_map()
 
121
  out2 = pipe(new_prompt, num_inference_steps=inf_steps, generator=gen)
122
  image2 = np.array(out2.images[0]) / 255
123
  else:
124
+ with trace(pipe, load_heads=False, save_heads=False) as tc:
125
  out = pipe(prompt, num_inference_steps=inf_steps, generator=gen)
126
  image = np.array(out.images[0]) / 255
127
  heat_map = tc.compute_global_heat_map()