FunASR
FunASR copied to clipboard
Docker安装FunASR启动中止
trafficstars
我是通过以下指令下载的docker镜像
sudo docker pull \
registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-online-cpu-0.1.5
启动后进入窗口
cd FunASR/runtime
bash run_server_2pass.sh \
--download-model-dir /workspace/models \
--vad-dir damo/speech_fsmn_vad_zh-cn-16k-common-onnx \
--model-dir damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-onnx \
--online-model-dir damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-online-onnx \
--punc-dir damo/punc_ct-transformer_zh-cn-common-vad_realtime-vocab272727-onnx \
--itn-dir thuduj12/fst_itn_zh \
--hotword /workspace/models/hotwords.txt
但是最后会报以下错误中止运行,麻烦问下是什么原因导致的?
...
2023-12-21 14:40:47,439 - modelscope - INFO - PyTorch version 1.13.1+cpu Found.
2023-12-21 14:40:47,440 - modelscope - INFO - Loading ast index from /root/.cache/modelscope/ast_indexer
2023-12-21 14:40:47,499 - modelscope - INFO - Loading done! Current index file version is 1.9.4, with md5 60bd3d6f6d99e2c5669b65991572d2dd and a total number of 945 components indexed
2023-12-21 14:40:47,772 - modelscope - INFO - Use user-specified model revision: v1.0.1
I20231221 14:40:48.190398 62890 funasr-wss-server-2pass.cpp:412] Set itn-dir : /workspace/models/thuduj12/fst_itn_zh
I20231221 14:40:48.190443 62890 funasr-wss-server-2pass.cpp:441] hotword path: /workspace/models/hotwords.txt
E20231221 14:40:48.190495 62890 util.cpp:585] Unable to open hotwords file: /workspace/models/hotwords.txt. If you have not set hotwords, please ignore this message.
I20231221 14:40:48.192068 62890 funasr-wss-server-2pass.cpp:461] SSL is opened!
[2023-12-21 14:40:48] [info] asio listen error: asio.system:98 (Address already in use)
terminate called without an active exception
run_server_2pass.sh: line 46: 62890 Aborted (core dumped) ./funasr-wss-server-2pass --download-model-dir "${download_model_dir}" --model-dir "${model_dir}" --online-model-dir "${online_model_dir}" --vad-dir "${vad_dir}" --punc-dir "${punc_dir}" --itn-dir "${itn_dir}" --decoder-thread-num ${decoder_thread_num} --io-thread-num ${io_thread_num} --port ${port} --certfile "${certfile}" --keyfile "${keyfile}" --hotword "${hotword}"
运行的机器配置是2核8G的配置,现在有点摸不着头脑 😂
[2023-12-21 14:40:48] [info] asio listen error: asio.system:98 (Address already in use)
The port number 10095 is occupied; please release the port or switch to a different port number.