CosyVoice icon indicating copy to clipboard operation
CosyVoice copied to clipboard

Problem about running cosyvoice2-0.5B

Open fatdennis opened this issue 6 months ago • 6 comments

When running cosyvoice in my pc, it met...

(cosyvoice) I:\CosyVoice>python webui.py --port 50002 --model_dir pretrained_models/CosyVoice2-0.5B 2025-06-03 15:36:26,430 - modelscope - INFO - PyTorch version 2.3.1+cu121 Found. 2025-06-03 15:36:26,433 - modelscope - INFO - Loading ast index from C:\Users\Dennis.cache\modelscope\ast_indexer 2025-06-03 15:36:26,864 - modelscope - INFO - Loading done! Current index file version is 1.15.0, with md5 318cee8dd2cab498b84bffbf78ee1145 and a total number of 980 components indexed failed to import ttsfrd, use WeTextProcessing instead C:\Users\Dennis\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-06-03 15:37:06,819 INFO input frame rate=25 C:\Users\Dennis\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 "webui.py", line 188, in cosyvoice = CosyVoice(args.model_dir) File "I:\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 "C:\Users\Dennis\anaconda3\envs\cosyvoice\lib\pydoc.py", line 343, in safeimport module = import(path) File "I:\CosyVoice\cosyvoice\dataset\processor.py", line 17, in import pyarrow.parquet as pq File "C:\Users\Dennis\anaconda3\envs\cosyvoice\lib\site-packages\pyarrow_init_.py", line 65, in import pyarrow.lib as _lib ImportError: DLL load failed while importing lib: 找不到指定的程序。

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "webui.py", line 191, in cosyvoice = CosyVoice2(args.model_dir) File "I:\CosyVoice\cosyvoice\cli\cosyvoice.py", line 154, in init configs = load_hyperpyyaml(f, overrides={'qwen_pretrain_path': os.path.join(model_dir, 'CosyVoice-BlankEN')}) File "C:\Users\Dennis\anaconda3\envs\cosyvoice\lib\site-packages\hyperpyyaml\core.py", line 188, in load_hyperpyyaml hparams = yaml.load(yaml_stream, Loader=loader) File "C:\Users\Dennis\anaconda3\envs\cosyvoice\lib\site-packages\yaml_init_.py", line 81, in load return loader.get_single_data() File "C:\Users\Dennis\anaconda3\envs\cosyvoice\lib\site-packages\ruamel\yaml\constructor.py", line 116, in get_single_data return self.construct_document(node) File "C:\Users\Dennis\anaconda3\envs\cosyvoice\lib\site-packages\ruamel\yaml\constructor.py", line 120, in construct_document data = self.construct_object(node) File "C:\Users\Dennis\anaconda3\envs\cosyvoice\lib\site-packages\ruamel\yaml\constructor.py", line 147, in construct_object data = self.construct_non_recursive_object(node) File "C:\Users\Dennis\anaconda3\envs\cosyvoice\lib\site-packages\ruamel\yaml\constructor.py", line 188, in construct_non_recursive_object for _dummy in generator: File "C:\Users\Dennis\anaconda3\envs\cosyvoice\lib\site-packages\ruamel\yaml\constructor.py", line 633, in construct_yaml_map value = self.construct_mapping(node) File "C:\Users\Dennis\anaconda3\envs\cosyvoice\lib\site-packages\ruamel\yaml\constructor.py", line 429, in construct_mapping return BaseConstructor.construct_mapping(self, node, deep=deep) File "C:\Users\Dennis\anaconda3\envs\cosyvoice\lib\site-packages\ruamel\yaml\constructor.py", line 244, in construct_mapping value = self.construct_object(value_node, deep=deep) File "C:\Users\Dennis\anaconda3\envs\cosyvoice\lib\site-packages\ruamel\yaml\constructor.py", line 147, in construct_object data = self.construct_non_recursive_object(node) File "C:\Users\Dennis\anaconda3\envs\cosyvoice\lib\site-packages\ruamel\yaml\constructor.py", line 183, in construct_non_recursive_object data = constructor(self, tag_suffix, node) File "C:\Users\Dennis\anaconda3\envs\cosyvoice\lib\site-packages\hyperpyyaml\core.py", line 489, in _construct_name name = pydoc.locate(callable_string) File "C:\Users\Dennis\anaconda3\envs\cosyvoice\lib\pydoc.py", line 1626, in locate nextmodule = safeimport('.'.join(parts[:n+1]), forceload) File "C:\Users\Dennis\anaconda3\envs\cosyvoice\lib\pydoc.py", line 358, in safeimport raise ErrorDuringImport(path, sys.exc_info()) pydoc.ErrorDuringImport: problem in cosyvoice.dataset.processor - ImportError: DLL load failed while importing lib: 找不到指定的程序。

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "webui.py", line 193, in raise TypeError('no valid model_type!') TypeError: no valid model_type!

fatdennis avatar Jun 03 '25 07:06 fatdennis

seems python env problem

aluminumbox avatar Jun 05 '25 05:06 aluminumbox

seems python env problem

How to fix it?

fatdennis avatar Jun 07 '25 06:06 fatdennis

+1,how to fix?

ArlanCooper avatar Jun 27 '25 02:06 ArlanCooper

+1,how to fix?

ngtduc693 avatar Jul 16 '25 03:07 ngtduc693

me too I have tried so many times but failed. I don't know but maybe the instructions are not detailed enough. I'm using Mac Mini M2

tsuus avatar Jul 20 '25 13:07 tsuus

看来都没有解决办法啊

yao978318542 avatar Aug 29 '25 09:08 yao978318542