Spaces:
Running
on
Zero
Running
on
Zero
Update models.py
Browse files
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
|