Closed chenyangMl closed 4 months ago
Currently, the software package supports consistent configurations for both offline and online models, and does not support loading two models with different configurations for offline and online use. Whether we need to support this will be evaluated later.
Thanks for your response. Although the accuracy of the small model is lower, it has fast processing speed, so it is necessary to have two models with different configurations. That will be a nice feature for many of users.
🐛 Bug
To Reproduce
Steps to reproduce the behavior (always include the command you ran):
使用新的offline模型和online模型一起,启动服务。 命令:
测试2pass流程, offline输出结果错误。 测试命令 ./funasr-wss-client-2pass --server-ip 127.0.0.1 --port 10095 --mode 2pass --wav-path path_to/audio/asr_example.wav --is-ssl 0
错误日志
错误表现: online模型解码正确,offline模型解码错误。
Code sample
Expected behavior
感觉应该是offline模型的tokenizer内部加载错误了,导致offline阶段的识别过程乱码了。
希望可以支持加载不同config, 不同tokenizer的模型可以组合使用。
Environment
pip
, source):Additional context