Easy-to-use Speech Toolkit including Self-Supervised Learning model, SOTA/Streaming ASR with punctuation, Streaming TTS with text frontend, Speaker Verification System, End-to-End Speech Translation and Keyword Spotting. Won NAACL2022 Best Demo Award.
请问有使用模型导出的 pdmodel 和 padiparams文件推理的示例嘛, 不知道为啥在GPU上用config和pdparams预测asr的时候很慢,大概10s左右(和我在笔记本上用CPU预测的时间差不多), 看了一下显存占用1000M多点,不知道正常不啊。 我根据百度搜到的 paddle.inference 相关资料,尝试使用 deepspeech2_online_aishell_fbank161 导出的 pdmodel 和 padiparams文件进行预测,但是没搞懂输入输出都是啥啊,卡在一个很奇怪的报错上进行不下去了。
代码如下:
目前的终端输出和报错情况如下: