Git Product home page Git Product logo

Comments (3)

mlxu995 avatar mlxu995 commented on September 3, 2024

@zmoth 方便的话发一下你转 onnx 失败的 pt 的地址

from wekws.

zmoth avatar zmoth commented on September 3, 2024

在WIndows WSL和macOS上都是这个结果,使用miniconda,python=3.8.19 ,macOS上pytorch=2.3.0,torchaudio=2.3.0,WSL是按照README环境安装的。

https://www.modelscope.cn/studios/thuduj12/KWS_Nihao_Xiaojing

使用的是run_fsmn_ctc.sh

./run_fsmn_ctc.sh 4 4
checkpoint=
dir=exp/KWS_Nihao_Xiaojing/model/hixiaowen
average_model=true
num_average=30
if $average_model ;then
  score_checkpoint=$dir/avg_${num_average}.pt
else
  score_checkpoint=$dir/final.pt
fi

download_dir=./data/local # your data dir

其实上面的模型我都尝试过,有些是bin文件不知道怎么转换,还有的(https://www.modelscope.cn/iic/speech_charctc_kws_phone-xiaoyun)报错是

Traceback (most recent call last):
  File "wekws/bin/export_onnx.py", line 103, in <module>
    main()
  File "wekws/bin/export_onnx.py", line 42, in main
    feature_dim = configs['model']['input_dim']
KeyError: 'model'

from wekws.

mlxu995 avatar mlxu995 commented on September 3, 2024

ctc loss 的模型暂时还没有支持导出 onnx 和 c++ 推理,你可以先试试 maxpooling loss 的模型

from wekws.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.