windows本地部署cosyvoice2.0,按照网上的教程conda下创建环境,并下载模型。运行python webui.py后报错
Sliding Window Attention is enabled but not implemented for `sdpa`; unexpected results may be encountered.
D:\Programs\anaconda3\envs\cosyvoice\lib\site-packages\diffusers\models\lora.py:393: FutureWarning: `LoRACompatibleLinear` is deprecated and will be removed in version 1.0.0. Use of `LoRACompatibleLinear` is deprecated. Please switch to PEFT backend by installing PEFT: `pip install peft`.
deprecate("LoRACompatibleLinear", "1.0.0", deprecation_message)
2025-10-09 16:37:30,238 INFO input frame rate=25
D:\Programs\anaconda3\envs\cosyvoice\lib\site-packages\torch\nn\utils\weight_norm.py:28: UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.
warnings.warn("torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.")
Traceback (most recent call last):
File "D:\job\AI\CosyVoice\webui.py", line 188, in <module>
cosyvoice = CosyVoice(args.model_dir)
File "D:\job\AI\CosyVoice\cosyvoice\cli\cosyvoice.py", line 37, in __init__
raise ValueError('{} not found!'.format(hyper_yaml_path))
ValueError: pretrained_models/CosyVoice2-0.5B/cosyvoice.yaml not found!
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\job\AI\CosyVoice\webui.py", line 191, in <module>
cosyvoice = CosyVoice2(args.model_dir)
File "D:\job\AI\CosyVoice\cosyvoice\cli\cosyvoice.py", line 156, in __init__
self.frontend = CosyVoiceFrontEnd(configs['get_tokenizer'],
File "D:\job\AI\CosyVoice\cosyvoice\cli\frontend.py", line 66, in __init__
self.frd = ttsfrd.TtsFrontendEngine()
AttributeError: module 'ttsfrd' has no attribute 'TtsFrontendEngine'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\job\AI\CosyVoice\webui.py", line 193, in <module>
raise TypeError('no valid model_type!')
TypeError: no valid model_type!
请问有人部署时遇见过这个问题吗,要怎么解决?