yeyupiaoling / PaddlePaddle-DeepSpeech

基于PaddlePaddle实现的语音识别,中文语音识别。项目完善,识别效果好。支持Windows,Linux下训练和预测,支持Nvidia Jetson开发板预测。
https://yeyupiaoling.blog.csdn.net/article/details/102904306
Apache License 2.0
649 stars 143 forks source link

本地预测时找不到打不开文件 #169

Closed Jackdfse closed 1 week ago

Jackdfse commented 2 months ago

![Uploading 图片1.png…]()

(NotFound) Cannot open file C:\Users\帅哥\AppData\Roaming\Python\Python39\site-packages\LAC\lac_model\model/model, please confirm whether the file is normal. [Hint: Expected static_cast(fin.is_open()) == true, but received static_cast(fin.is_open()):0 != true:1.] (at C:\home\workspace\Paddle_release\paddle\fluid\inference\api\analysis_predictor.cc:953)

Traceback (most recent call last): File "C:\Users\帅哥\Desktop\daima\PaddlePaddle-DeepSpeech-master\infer_path.py", line 34, in predictor = Predictor(model_dir=args.model_dir, audio_process=audio_process, decoding_method=args.decoding_method, File "C:\Users\帅哥\Desktop\daima\PaddlePaddle-DeepSpeech-master\utils\predict.py", line 69, in init self.predict(warmup_audio_path, to_an=True) File "C:\Users\帅哥\Desktop\daima\PaddlePaddle-DeepSpeech-master\utils\predict.py", line 122, in predict text = self.cn2an(text) File "C:\Users\帅哥\Desktop\daima\PaddlePaddle-DeepSpeech-master\utils\predict.py", line 129, in cn2an self.lac = LAC(mode='lac', use_cuda=self.use_gpu) File "C:\Users\帅哥\AppData\Roaming\Python\Python39\site-packages\LAC\lac.py", line 78, in init self.predictor = create_paddle_predictor(config) RuntimeError: Unknown exception

Jackdfse commented 2 months ago

大佬救救 !!!

Jackdfse commented 2 months ago

文件什么也都有,就是报错

yeyupiaoling commented 2 months ago

用我的PPASR,这个新一些,同样有deepspeech