Skip to content

Commit

Permalink
change modelscope link to github for build-kws-apki (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkufool authored Jan 24, 2024
1 parent bbd7c7f commit 2ff1049
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/test-kws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down
26 changes: 12 additions & 14 deletions build-kws-apk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

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"
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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2ff1049

Please sign in to comment.