ford442 commited on
Commit
9cb1d6b
·
verified ·
1 Parent(s): 8d8e3e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -114,6 +114,7 @@ def scheduler_swap_callback(pipeline, step_index, timestep, callback_kwargs):
114
  # pipe.vae = vae_a
115
  # pipe.unet = unet_a
116
  torch.backends.cudnn.deterministic = False
 
117
  print("-- swapping scheduler --")
118
  # pipeline.scheduler = heun_scheduler
119
  #pipe.scheduler.set_timesteps(num_inference_steps*.70)
 
114
  # pipe.vae = vae_a
115
  # pipe.unet = unet_a
116
  torch.backends.cudnn.deterministic = False
117
+ pipe.unet.set_default_attn_processor()
118
  print("-- swapping scheduler --")
119
  # pipeline.scheduler = heun_scheduler
120
  #pipe.scheduler.set_timesteps(num_inference_steps*.70)