linoyts HF staff commited on
Commit
72cfb1c
1 Parent(s): 8684377

Update models.py

Browse files
Files changed (1) hide show
  1. models.py +0 -5
models.py CHANGED
@@ -635,10 +635,5 @@ class AudioLDM2Wrapper(PipelineWrapper):
635
  def load_model(model_id, device, num_diffusion_steps, double_precision=False):
636
  ldm_stable = AudioLDM2Wrapper(model_id=model_id, device=device, double_precision=double_precision)
637
  ldm_stable.load_scheduler()
638
- ldm_stable.model.scheduler.set_timesteps(num_diffusion_steps, device=device)
639
  torch.cuda.empty_cache()
640
- # controller = AttentionStore()
641
- # controller = EmptyControl()
642
- # register_attention_control(ldm_stable.model, controller)
643
- # return ldm_stable, controller
644
  return ldm_stable
 
635
  def load_model(model_id, device, num_diffusion_steps, double_precision=False):
636
  ldm_stable = AudioLDM2Wrapper(model_id=model_id, device=device, double_precision=double_precision)
637
  ldm_stable.load_scheduler()
 
638
  torch.cuda.empty_cache()
 
 
 
 
639
  return ldm_stable