Spaces:
Runtime error
Runtime error
Update models.py
Browse files634 unmodified lines635636637638639640641642643644634 unmodified linesdef load_model(model_id, device, num_diffusion_steps, double_precision=False):ldm_stable = AudioLDM2Wrapper(model_id=model_id, device=device, double_precision=double_precision)ldm_stable.load_scheduler()ldm_stable.model.scheduler.set_timesteps(num_diffusion_steps, device=device)torch.cuda.empty_cache()# controller = AttentionStore()# controller = EmptyControl()# register_attention_control(ldm_stable.model, controller)# return ldm_stable, controllerreturn ldm_stable634 unmodified lines635636637638639634 unmodified linesdef load_model(model_id, device, num_diffusion_steps, double_precision=False):ldm_stable = AudioLDM2Wrapper(model_id=model_id, device=device, double_precision=double_precision)ldm_stable.load_scheduler()torch.cuda.empty_cache()return ldm_stable
models.py-5