FunASR icon indicating copy to clipboard operation
FunASR copied to clipboard

Fix path mistake in FunASR/runtime/python /onnxruntime/README.md and fix python dependence mistake of funasr_onnx

Open Yan-Xiangjun opened this issue 4 weeks ago • 1 comments
trafficstars

“FunASR/funasr/runtime/python/onnxruntime”是一个不存在的路径,在执行“cd FunASR”之后,如果用户再执行“cd funasr/runtime/python/onnxruntime”会出现错误。

虽然funasr_onnx用到了onnxruntime,但实际上它并未用到onnx库。(仅安装funasr_onnx,不安装完整的funasr Python包,是不需要import onnx的)但onnx出现在了install_requires中。

jieba库未出现在install_requires中,但 FunASR/runtime/python/onnxruntime/funasr_onnx/utils/utils.py 使用到它了。

"FunASR/funasr/runtime/python/onnxruntime" is an invalid path. After executing "cd FunASR", if the user executes "cd funasr/runtime/python/onnxruntime", an error will occur.

Although funasr_onnx uses onnxruntime, it does not actually use onnx. (If only funasr_onnx is installed, without installing the whole funasr Python package, there is no need to import onnx) However, onnx appears in the install_requires list.

The jieba package is not included in the install_requires list, but it is used in the file FunASR/runtime/python/onnxruntime/funasr_onnx/utils/utils.py.

Yan-Xiangjun avatar Oct 27 '25 12:10 Yan-Xiangjun