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

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

Open
Jackdfse opened this issue Apr 22, 2024 · 3 comments
Open

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

Jackdfse opened this issue Apr 22, 2024 · 3 comments

Comments

@Jackdfse
Copy link

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
Copy link
Author

大佬救救
!!!

@Jackdfse
Copy link
Author

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

@yeyupiaoling
Copy link
Owner

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

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