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

run_server.sh脚本不能指定revision参数,造成按示例跑不起来8k采样离线服务 #2355

Open
kirinrin opened this issue Jan 9, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@kirinrin
Copy link

kirinrin commented Jan 9, 2025

Notice: In order to resolve issues more efficiently, please raise issue following the template.
(注意:为了更加高效率解决您遇到的问题,请按照模板提问,补充细节)

🐛 Bug

使用docker运行,8k采样率的离线服务 模型时,发现脚本内的模型版本不匹配魔塔的,当现16k的模型写死了 2.0.6,但8k的只有 2.0.4,启动命令又不支持参数覆盖

To Reproduce

  1. 启动docker容器
  2. 运行离线ASR 8k的采样率的脚本
  3. 查看日志发现,示例中vad库的模型使用版本 2.0.6,但下载失败。

Code sample

需要把run_server.sh中的后面指定 2.0.4版本

cd $cmd_path
$cmd_path/${cmd}  \
  --download-model-dir "${download_model_dir}" \
  --model-dir "${model_dir}" \
  --vad-dir "${vad_dir}" \
  --punc-dir "${punc_dir}" \
  --itn-dir "${itn_dir}" \
  --lm-dir "${lm_dir}" \
  --decoder-thread-num ${decoder_thread_num} \
  --model-thread-num ${model_thread_num} \
  --io-thread-num  ${io_thread_num} \
  --port ${port} \
  --certfile  "${certfile}" \
  --vad-revision "v2.0.4" \
  --punc-revision "v2.0.4" \
  --model-revision "v2.0.4" \
  --keyfile "${keyfile}" \
  --hotword "${hotword}" &

Environment

  • OS (e.g., Linux): Mac
  • FunASR Version (e.g., 1.0.0): funasr:funasr-runtime-sdk-cpu-0.4.6
  • ModelScope Version (e.g., 1.11.0):
  • PyTorch Version (e.g., 2.0.0):
  • How you installed funasr (pip, source):
  • Python version:
  • GPU (e.g., V100M32)
  • CUDA/cuDNN version (e.g., cuda11.7):
  • Docker version (e.g., funasr-runtime-sdk-cpu-0.4.1)
  • Any other relevant information:

Additional context

@kirinrin kirinrin added the bug Something isn't working label Jan 9, 2025
@kirinrin kirinrin changed the title run_server.sh脚本不能指定revision参数,造成按示例跑不起来他 run_server.sh脚本不能指定revision参数,造成按示例跑不起来8k采样离线服务 Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant