change modelscope link to github for build-kws-apki (#540)
This commit is contained in:
6
.github/scripts/test-kws.sh
vendored
6
.github/scripts/test-kws.sh
vendored
@@ -22,7 +22,7 @@ log "Start testing ${repo_url}"
|
||||
repo=sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01
|
||||
|
||||
log "Download pretrained model and test-data from $repo_url"
|
||||
wget $repo_url
|
||||
wget -qq $repo_url
|
||||
tar jxvf ${repo}.tar.bz
|
||||
|
||||
time $EXE \
|
||||
@@ -47,8 +47,8 @@ log "Start testing ${repo_url}"
|
||||
repo=sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01
|
||||
|
||||
log "Download pretrained model and test-data from $repo_url"
|
||||
wget $repo_url
|
||||
tar jxvf ${ropo}.tar.bz
|
||||
wget -qq $repo_url
|
||||
tar jxvf ${repo}.tar.bz
|
||||
|
||||
time $EXE \
|
||||
--tokens=$repo/tokens.txt \
|
||||
|
||||
2
.github/workflows/linux.yaml
vendored
2
.github/workflows/linux.yaml
vendored
@@ -8,6 +8,7 @@ on:
|
||||
- '*'
|
||||
paths:
|
||||
- '.github/workflows/linux.yaml'
|
||||
- '.github/scripts/test-kws.sh'
|
||||
- '.github/scripts/test-online-transducer.sh'
|
||||
- '.github/scripts/test-online-paraformer.sh'
|
||||
- '.github/scripts/test-offline-transducer.sh'
|
||||
@@ -24,6 +25,7 @@ on:
|
||||
- master
|
||||
paths:
|
||||
- '.github/workflows/linux.yaml'
|
||||
- '.github/scripts/test-kws.sh'
|
||||
- '.github/scripts/test-online-transducer.sh'
|
||||
- '.github/scripts/test-online-paraformer.sh'
|
||||
- '.github/scripts/test-offline-transducer.sh'
|
||||
|
||||
2
.github/workflows/macos.yaml
vendored
2
.github/workflows/macos.yaml
vendored
@@ -8,6 +8,7 @@ on:
|
||||
- '*'
|
||||
paths:
|
||||
- '.github/workflows/macos.yaml'
|
||||
- '.github/scripts/test-kws.sh'
|
||||
- '.github/scripts/test-online-transducer.sh'
|
||||
- '.github/scripts/test-online-paraformer.sh'
|
||||
- '.github/scripts/test-offline-transducer.sh'
|
||||
@@ -22,6 +23,7 @@ on:
|
||||
- master
|
||||
paths:
|
||||
- '.github/workflows/macos.yaml'
|
||||
- '.github/scripts/test-kws.sh'
|
||||
- '.github/scripts/test-online-transducer.sh'
|
||||
- '.github/scripts/test-online-paraformer.sh'
|
||||
- '.github/scripts/test-offline-transducer.sh'
|
||||
|
||||
@@ -33,17 +33,17 @@ mkdir -p apks
|
||||
repo=sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01
|
||||
|
||||
if [ ! -d ./android/SherpaOnnxKws/app/src/main/assets/$repo ]; then
|
||||
repo_url=https://www.modelscope.cn/pkufool/sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01.git
|
||||
log "Start testing ${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"
|
||||
|
||||
# remove .git to save spaces
|
||||
rm -rf .git
|
||||
repo_url=https://github.com/pkufool/keyword-spotting-models/releases/download/v0.1/sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01.tar.bz
|
||||
log "Start testing ${repo_url}"
|
||||
|
||||
log "Download pretrained model and test-data from $repo_url"
|
||||
wget -qq $repo_url
|
||||
tar jxvf ${repo}.tar.bz
|
||||
|
||||
pushd $repo
|
||||
rm *.int8.onnx
|
||||
rm README.md configuration.json .gitattributes
|
||||
rm README.md
|
||||
rm -rfv test_wavs
|
||||
ls -lh
|
||||
popd
|
||||
@@ -85,17 +85,15 @@ rm -rf ./android/SherpaOnnxKws/app/src/main/assets/$repo
|
||||
repo=sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01
|
||||
|
||||
if [ ! -d ./android/SherpaOnnxKws/app/src/main/assets/$repo ]; then
|
||||
repo_url=https://www.modelscope.cn/pkufool/sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01.git
|
||||
repo_url=https://github.com/pkufool/keyword-spotting-models/releases/download/v0.1/sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01.tar.bz
|
||||
log "Start testing ${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"
|
||||
wget -qq $repo_url
|
||||
tar jxvf ${repo}.tar.bz
|
||||
|
||||
# remove .git to save spaces
|
||||
rm -rf .git
|
||||
pushd $repo
|
||||
rm *.int8.onnx
|
||||
rm README.md configuration.json .gitattributes
|
||||
rm README.md
|
||||
rm -rfv test_wavs
|
||||
ls -lh
|
||||
popd
|
||||
|
||||
Reference in New Issue
Block a user