Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when start a webui. server #898

Open
skytraveler opened this issue Jan 17, 2025 · 2 comments
Open

Error when start a webui. server #898

skytraveler opened this issue Jan 17, 2025 · 2 comments

Comments

@skytraveler
Copy link

Describe the bug
when I start webui server

python webui.py --port 50000 --model_dir pretrained_models/CosyVoice-300M

I got this

File "/Users/li/miniconda3/envs/cosyvoice/lib/python3.10/site-packages/hyperpyyaml/core.py", line 778, in recursive_update
raise KeyError(f"Override '{k}' not found in: {[key for key in d.keys()]}")
KeyError: "Override 'qwen_pretrain_path' not found in: ['__set_seed1', '__set_seed2', '__set_seed3', '__set_seed4', 'sample_rate', 'text_encoder_input_size', 'llm_input_size', 'llm_output_size', 'spk_embed_dim', 'llm', 'flow', 'hift', 'parquet_opener', 'get_tokenizer', 'allowed_special', 'tokenize', 'filter', 'resample', 'feat_extractor', 'compute_fbank', 'parse_embedding', 'shuffle', 'sort', 'batch', 'padding', 'data_pipeline', 'train_conf']"

During handling of the above exception, another exception occurred:

I guess there is no module ,but I looked the pretrain dir, the files are there.

@skytraveler
Copy link
Author

/Users/li/miniconda3/envs/cosyvoice/lib/python3.10/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-01-17 17:59:17,309 INFO input frame rate=50
Traceback (most recent call last):
File "/Users/li/ai/CosyVoice/webui.py", line 188, in
cosyvoice = CosyVoice(args.model_dir)
File "/Users/li/ai/CosyVoice/cosyvoice/cli/cosyvoice.py", line 37, in init
self.frontend = CosyVoiceFrontEnd(configs['get_tokenizer'],
File "/Users/li/ai/CosyVoice/cosyvoice/cli/frontend.py", line 52, in init
self.campplus_session = onnxruntime.InferenceSession(campplus_model, sess_options=option, providers=["CPUExecutionProvider"])
File "/Users/li/miniconda3/envs/cosyvoice/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 419, in init
self._create_inference_session(providers, provider_options, disabled_optimizers)
File "/Users/li/miniconda3/envs/cosyvoice/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 472, in _create_inference_session
sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model)
onnxruntime.capi.onnxruntime_pybind11_state.InvalidProtobuf: [ONNXRuntimeError] : 7 : INVALID_PROTOBUF : Load model from pretrained_models/CosyVoice-300M/campplus.onnx failed:Protobuf parsing failed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/li/ai/CosyVoice/webui.py", line 191, in
cosyvoice = CosyVoice2(args.model_dir)
File "/Users/li/ai/CosyVoice/cosyvoice/cli/cosyvoice.py", line 135, in init
configs = load_hyperpyyaml(f, overrides={'qwen_pretrain_path': os.path.join(model_dir, 'CosyVoice-BlankEN')})
File "/Users/li/miniconda3/envs/cosyvoice/lib/python3.10/site-packages/hyperpyyaml/core.py", line 157, in load_hyperpyyaml
yaml_stream = resolve_references(yaml_stream, overrides, overrides_must_match)
File "/Users/li/miniconda3/envs/cosyvoice/lib/python3.10/site-packages/hyperpyyaml/core.py", line 316, in resolve_references
recursive_update(preview, overrides, must_match=overrides_must_match)
File "/Users/li/miniconda3/envs/cosyvoice/lib/python3.10/site-packages/hyperpyyaml/core.py", line 778, in recursive_update
raise KeyError(f"Override '{k}' not found in: {[key for key in d.keys()]}")
KeyError: "Override 'qwen_pretrain_path' not found in: ['__set_seed1', '__set_seed2', '__set_seed3', '__set_seed4', 'sample_rate', 'text_encoder_input_size', 'llm_input_size', 'llm_output_size', 'spk_embed_dim', 'llm', 'flow', 'hift', 'parquet_opener', 'get_tokenizer', 'allowed_special', 'tokenize', 'filter', 'resample', 'feat_extractor', 'compute_fbank', 'parse_embedding', 'shuffle', 'sort', 'batch', 'padding', 'data_pipeline', 'train_conf']"

During handling of the above exception, another exception occurred:

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

@aluminumbox
Copy link
Collaborator

模型下载不完整

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants