Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
sherpaonnx
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Fangjun Kuang
2025-02-16 16:54:48 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2025-02-16 16:54:48 +0800
Commit
2337169ee266c0c2d85058b1a5bf2e66357cb741
2337169e
1 parent
60beff14
Export FireRedASR to sherpa-onnx. (#1865)
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
120 行增加
和
1 行删除
.github/workflows/export-fire-red-asr.yaml
.github/workflows/mfc.yaml
.github/workflows/export-fire-red-asr.yaml
0 → 100644
查看文件 @
2337169
name
:
export-fire-red-asr-to-onnx
on
:
push
:
branches
:
-
export-fire-red-asr
workflow_dispatch
:
concurrency
:
group
:
export-fire-red-asr-to-onnx-${{ github.ref }}
cancel-in-progress
:
true
jobs
:
export-fire-red-asr-to-onnx
:
if
:
github.repository_owner == 'k2-fsa' || github.repository_owner == 'csukuangfj'
name
:
export FireRedAsr ${{ matrix.version }}
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
false
matrix
:
os
:
[
ubuntu-latest
]
python-version
:
[
"
3.10"
]
steps
:
-
uses
:
actions/checkout@v4
-
name
:
Setup Python ${{ matrix.python-version }}
uses
:
actions/setup-python@v5
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Install Python dependencies
shell
:
bash
run
:
|
pip install "numpy<=1.26.4" onnx==1.16.0 onnxruntime==1.17.1
-
name
:
Download exported ONNX model from ModelScope
env
:
MS_TOKEN
:
${{ secrets.MODEL_SCOPE_GIT_TOKEN }}
shell
:
bash
run
:
|
git clone https://oauth2:${MS_TOKEN}@www.modelscope.cn/csukuangfj/sherpa-onnx-fire-red-asr-large-zh_en-2025-02-16.git ms
ls -lh ms
-
name
:
Collect results
shell
:
bash
run
:
|
src=ms
d=sherpa-onnx-fire-red-asr-large-zh_en-2025-02-16
mkdir $d
mv -v $src/*.onnx $d
cp -v $src/README.md $d
cp -v $src/tokens.txt $d
cp -av $src/test_wavs $d
ls -lh $d/
tar cjfv $d.tar.bz2 $d
ls -lh $d.tar.bz2
rm -rf ms
-
name
:
Publish to huggingface ${{ matrix.version }}
env
:
HF_TOKEN
:
${{ secrets.HF_TOKEN }}
uses
:
nick-fields/retry@v3
with
:
max_attempts
:
20
timeout_seconds
:
200
shell
:
bash
command
:
|
git config --global user.email "csukuangfj@gmail.com"
git config --global user.name "Fangjun Kuang"
rm -rf huggingface
export GIT_LFS_SKIP_SMUDGE=1
export GIT_CLONE_PROTECTION_ACTIVE=false
src=sherpa-onnx-fire-red-asr-large-zh_en-2025-02-16
git clone https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/$src huggingface
cd huggingface
rm -rf ./*
git fetch
git pull
cp -av ../$src/* ./
git lfs track "*.onnx"
git add .
ls -lh
git status
git commit -m "add models"
git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/$src main || true
-
name
:
Release
if
:
github.repository_owner == 'csukuangfj'
uses
:
svenstaro/upload-release-action@v2
with
:
file_glob
:
true
file
:
./*.tar.bz2
overwrite
:
true
repo_name
:
k2-fsa/sherpa-onnx
repo_token
:
${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }}
tag
:
asr-models
-
name
:
Release
if
:
github.repository_owner == 'k2-fsa'
uses
:
svenstaro/upload-release-action@v2
with
:
file_glob
:
true
file
:
./*.tar.bz2
overwrite
:
true
tag
:
asr-models
...
...
.github/workflows/mfc.yaml
查看文件 @
2337169
...
...
@@ -138,7 +138,7 @@ jobs:
file
:
./mfc-examples/${{ matrix.arch }}/Release/sherpa-onnx-non-streaming-*.exe
-
name
:
Release pre-compiled binaries and libs for Windows ${{ matrix.arch }}
if
:
github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa'
&& github.event_name == 'push' && contains(github.ref, 'refs/tags/')
if
:
(github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa')
&& github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses
:
svenstaro/upload-release-action@v2
with
:
file_glob
:
true
...
...
请
注册
或
登录
后发表评论