PaddleSpeech icon indicating copy to clipboard operation
PaddleSpeech copied to clipboard

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

Open xxll569 opened this issue 7 months ago • 3 comments

使用命令 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)

xxll569 avatar Apr 23 '25 01:04 xxll569

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

zxcd avatar Apr 24 '25 06:04 zxcd

同样的问题,怎么手动下载这个inference.pdmodel模型呢?

KevinLoveGitHub avatar May 27 '25 14:05 KevinLoveGitHub

升级一下 paddlenlp==3.0.0b4。PaddleNLP针对性的对Taskflow的链接做了修改。

zxcd avatar Jun 03 '25 08:06 zxcd