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
|
repo=sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01
|
||||||
|
|
||||||
log "Download pretrained model and test-data from $repo_url"
|
log "Download pretrained model and test-data from $repo_url"
|
||||||
wget $repo_url
|
wget -qq $repo_url
|
||||||
tar jxvf ${repo}.tar.bz
|
tar jxvf ${repo}.tar.bz
|
||||||
|
|
||||||
time $EXE \
|
time $EXE \
|
||||||
@@ -47,8 +47,8 @@ log "Start testing ${repo_url}"
|
|||||||
repo=sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01
|
repo=sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01
|
||||||
|
|
||||||
log "Download pretrained model and test-data from $repo_url"
|
log "Download pretrained model and test-data from $repo_url"
|
||||||
wget $repo_url
|
wget -qq $repo_url
|
||||||
tar jxvf ${ropo}.tar.bz
|
tar jxvf ${repo}.tar.bz
|
||||||
|
|
||||||
time $EXE \
|
time $EXE \
|
||||||
--tokens=$repo/tokens.txt \
|
--tokens=$repo/tokens.txt \
|
||||||
|
|||||||
2
.github/workflows/linux.yaml
vendored
2
.github/workflows/linux.yaml
vendored
@@ -8,6 +8,7 @@ on:
|
|||||||
- '*'
|
- '*'
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/linux.yaml'
|
- '.github/workflows/linux.yaml'
|
||||||
|
- '.github/scripts/test-kws.sh'
|
||||||
- '.github/scripts/test-online-transducer.sh'
|
- '.github/scripts/test-online-transducer.sh'
|
||||||
- '.github/scripts/test-online-paraformer.sh'
|
- '.github/scripts/test-online-paraformer.sh'
|
||||||
- '.github/scripts/test-offline-transducer.sh'
|
- '.github/scripts/test-offline-transducer.sh'
|
||||||
@@ -24,6 +25,7 @@ on:
|
|||||||
- master
|
- master
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/linux.yaml'
|
- '.github/workflows/linux.yaml'
|
||||||
|
- '.github/scripts/test-kws.sh'
|
||||||
- '.github/scripts/test-online-transducer.sh'
|
- '.github/scripts/test-online-transducer.sh'
|
||||||
- '.github/scripts/test-online-paraformer.sh'
|
- '.github/scripts/test-online-paraformer.sh'
|
||||||
- '.github/scripts/test-offline-transducer.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:
|
paths:
|
||||||
- '.github/workflows/macos.yaml'
|
- '.github/workflows/macos.yaml'
|
||||||
|
- '.github/scripts/test-kws.sh'
|
||||||
- '.github/scripts/test-online-transducer.sh'
|
- '.github/scripts/test-online-transducer.sh'
|
||||||
- '.github/scripts/test-online-paraformer.sh'
|
- '.github/scripts/test-online-paraformer.sh'
|
||||||
- '.github/scripts/test-offline-transducer.sh'
|
- '.github/scripts/test-offline-transducer.sh'
|
||||||
@@ -22,6 +23,7 @@ on:
|
|||||||
- master
|
- master
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/macos.yaml'
|
- '.github/workflows/macos.yaml'
|
||||||
|
- '.github/scripts/test-kws.sh'
|
||||||
- '.github/scripts/test-online-transducer.sh'
|
- '.github/scripts/test-online-transducer.sh'
|
||||||
- '.github/scripts/test-online-paraformer.sh'
|
- '.github/scripts/test-online-paraformer.sh'
|
||||||
- '.github/scripts/test-offline-transducer.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
|
repo=sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01
|
||||||
|
|
||||||
if [ ! -d ./android/SherpaOnnxKws/app/src/main/assets/$repo ]; then
|
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
|
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
|
||||||
rm -rf .git
|
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 *.int8.onnx
|
||||||
rm README.md configuration.json .gitattributes
|
rm README.md
|
||||||
rm -rfv test_wavs
|
rm -rfv test_wavs
|
||||||
ls -lh
|
ls -lh
|
||||||
popd
|
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
|
repo=sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01
|
||||||
|
|
||||||
if [ ! -d ./android/SherpaOnnxKws/app/src/main/assets/$repo ]; then
|
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 "Start testing ${repo_url}"
|
||||||
log "Download pretrained model and test-data from $repo_url"
|
log "Download pretrained model and test-data from $repo_url"
|
||||||
GIT_LFS_SKIP_SMUDGE=1 git clone $repo_url
|
wget -qq $repo_url
|
||||||
pushd $repo
|
tar jxvf ${repo}.tar.bz
|
||||||
git lfs pull --include "*.onnx"
|
|
||||||
|
|
||||||
# remove .git to save spaces
|
pushd $repo
|
||||||
rm -rf .git
|
|
||||||
rm *.int8.onnx
|
rm *.int8.onnx
|
||||||
rm README.md configuration.json .gitattributes
|
rm README.md
|
||||||
rm -rfv test_wavs
|
rm -rfv test_wavs
|
||||||
ls -lh
|
ls -lh
|
||||||
popd
|
popd
|
||||||
|
|||||||
Reference in New Issue
Block a user