CosyVoice icon indicating copy to clipboard operation
CosyVoice copied to clipboard

ImportError: There is no such entity as whisper.tokenizer.get_tokenizer

Open Upcreat opened this issue 6 months ago • 4 comments

failed to import ttsfrd, use WeTextProcessing instead /opt/conda/envs/cosyvoice/lib/python3.8/site-packages/torch/_jit_internal.py:726: FutureWarning: ignore(True) has been deprecated. TorchScript will now drop the function call on compilation. Use torch.jit.unused now. {} warnings.warn( /opt/conda/envs/cosyvoice/lib/python3.8/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) Traceback (most recent call last): File "download.py", line 12, in cosyvoice = CosyVoice('/root/workspace/LLM/pretrained_models/CosyVoice-300M') File "/root/workspace/LLM/CosyVoice/cosyvoice/cli/cosyvoice.py", line 29, in init configs = load_hyperpyyaml(f) File "/opt/conda/envs/cosyvoice/lib/python3.8/site-packages/hyperpyyaml/core.py", line 188, in load_hyperpyyaml hparams = yaml.load(yaml_stream, Loader=loader) File "/opt/conda/envs/cosyvoice/lib/python3.8/site-packages/yaml/init.py", line 81, in load return loader.get_single_data() File "/opt/conda/envs/cosyvoice/lib/python3.8/site-packages/ruamel/yaml/constructor.py", line 116, in get_single_data return self.construct_document(node) File "/opt/conda/envs/cosyvoice/lib/python3.8/site-packages/ruamel/yaml/constructor.py", line 120, in construct_document data = self.construct_object(node) File "/opt/conda/envs/cosyvoice/lib/python3.8/site-packages/ruamel/yaml/constructor.py", line 147, in construct_object data = self.construct_non_recursive_object(node) File "/opt/conda/envs/cosyvoice/lib/python3.8/site-packages/ruamel/yaml/constructor.py", line 188, in construct_non_recursive_object for _dummy in generator: File "/opt/conda/envs/cosyvoice/lib/python3.8/site-packages/ruamel/yaml/constructor.py", line 633, in construct_yaml_map value = self.construct_mapping(node) File "/opt/conda/envs/cosyvoice/lib/python3.8/site-packages/ruamel/yaml/constructor.py", line 429, in construct_mapping return BaseConstructor.construct_mapping(self, node, deep=deep) File "/opt/conda/envs/cosyvoice/lib/python3.8/site-packages/ruamel/yaml/constructor.py", line 244, in construct_mapping value = self.construct_object(value_node, deep=deep) File "/opt/conda/envs/cosyvoice/lib/python3.8/site-packages/ruamel/yaml/constructor.py", line 147, in construct_object data = self.construct_non_recursive_object(node) File "/opt/conda/envs/cosyvoice/lib/python3.8/site-packages/ruamel/yaml/constructor.py", line 183, in construct_non_recursive_object data = constructor(self, tag_suffix, node) File "/opt/conda/envs/cosyvoice/lib/python3.8/site-packages/hyperpyyaml/core.py", line 491, in _construct_name raise ImportError("There is no such entity as %s" % callable_string) ImportError: There is no such entity as whisper.tokenizer.get_tokenizer

不知道是whisper包的原因还是什么

Upcreat avatar Aug 05 '24 09:08 Upcreat