Skip to content

使用demos/speech_web/speech_server示例时报错 #4064

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

Open
xxll569 opened this issue Apr 23, 2025 · 1 comment
Open

使用demos/speech_web/speech_server示例时报错 #4064

xxll569 opened this issue Apr 23, 2025 · 1 comment
Assignees
Labels

Comments

@xxll569
Copy link

xxll569 commented Apr 23, 2025

使用命令 python main.py --port 8010启动时
报错:
[2025-04-23 09:51:39,820] [ INFO] - The inference model save in the path:source/model\static\inference
Traceback (most recent call last):
File "main.py", line 65, in
chatbot = Robot(
File "D:\work_xl\yuyin_asr\PaddleSpeech-r1.5\PaddleSpeech-r1.5\demos\speech_web\speech_server\src\robot.py", line 17, in init
self.nlp = NLP(ie_model_path=ie_model_path)
File "D:\work_xl\yuyin_asr\PaddleSpeech-r1.5\PaddleSpeech-r1.5\demos\speech_web\speech_server\src\SpeechBase\nlp.py", line 8, in init
self.ie_model = Taskflow(
File "C:\Users\xl\AppData\Local\Programs\Python\Python38\lib\site-packages\paddlenlp\taskflow\taskflow.py", line 804, in init
self.task_instance = task_class(
File "C:\Users\xl\AppData\Local\Programs\Python\Python38\lib\site-packages\paddlenlp\taskflow\information_extraction.py", line 536, in init
self._get_inference_model()
File "C:\Users\xl\AppData\Local\Programs\Python\Python38\lib\site-packages\paddlenlp\taskflow\task.py", line 371, in _get_inference_model
self._config = paddle.inference.Config(self.static_model_file, self.static_params_file)
RuntimeError: (NotFound) Cannot open file source/model\static\inference.pdmodel, please confirm whether the file is normal.
[Hint: Expected paddle::inference::IsFileExists(prog_file
) == true, but received paddle::inference::IsFileExists(prog_file
):0 != true:1.] (at ..\paddle\fluid\inference\api\analysis_config.cc:117)

@zxcd zxcd self-assigned this Apr 24, 2025
@zxcd
Copy link
Collaborator

zxcd commented Apr 24, 2025

看起来是模型没有成功加载,建议查看一下是否因网络问题模型没有下载成功

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

No branches or pull requests

2 participants