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
Jingzhao Ou
2023-05-11 17:37:24 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2023-05-12 08:37:24 +0800
Commit
de1880948b44d25437510c15d52cef1a32bc0e6e
de188094
1 parent
0992063d
Added streaming conformer test (#150)
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
43 行增加
和
0 行删除
.github/scripts/test-online-transducer.sh
.github/scripts/test-online-transducer.sh
查看文件 @
de18809
...
...
@@ -209,3 +209,46 @@ if [ $EXE == "sherpa-onnx-ffmpeg" ]; then
fi
rm -rf
$repo
log
"------------------------------------------------------------"
log
"Run streaming Conformer transducer (English)"
log
"------------------------------------------------------------"
repo_url
=
https://huggingface.co/csukuangfj/sherpa-onnx-streaming-conformer-en-2023-05-09
log
"Start testing
${
repo_url
}
"
repo
=
$(
basename
$repo_url
)
log
"Download pretrained model and test-data from
$repo_url
"
GIT_LFS_SKIP_SMUDGE
=
1 git clone
$repo_url
pushd
$repo
git lfs pull --include
"*.onnx"
ls -lh
*
.onnx
popd
waves
=(
$repo
/test_wavs/0.wav
$repo
/test_wavs/1.wav
$repo
/test_wavs/2.wav
)
for
wave
in
${
waves
[@]
}
;
do
time
$EXE
\
$repo
/tokens.txt
\
$repo
/encoder-epoch-99-avg-1.onnx
\
$repo
/decoder-epoch-99-avg-1.onnx
\
$repo
/joiner-epoch-99-avg-1.onnx
\
$wave
\
2
done
for
wave
in
${
waves
[@]
}
;
do
time
$EXE
\
$repo
/tokens.txt
\
$repo
/encoder-epoch-99-avg-1.int8.onnx
\
$repo
/decoder-epoch-99-avg-1.int8.onnx
\
$repo
/joiner-epoch-99-avg-1.int8.onnx
\
$wave
\
2
done
rm -rf
$repo
...
...
请
注册
或
登录
后发表评论