Committed by
GitHub
change modelscope link to github for build-kws-apki (#540)
正在显示
4 个修改的文件
包含
19 行增加
和
17 行删除
| @@ -22,7 +22,7 @@ log "Start testing ${repo_url}" | @@ -22,7 +22,7 @@ log "Start testing ${repo_url}" | ||
| 22 | repo=sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01 | 22 | repo=sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01 |
| 23 | 23 | ||
| 24 | log "Download pretrained model and test-data from $repo_url" | 24 | log "Download pretrained model and test-data from $repo_url" |
| 25 | -wget $repo_url | 25 | +wget -qq $repo_url |
| 26 | tar jxvf ${repo}.tar.bz | 26 | tar jxvf ${repo}.tar.bz |
| 27 | 27 | ||
| 28 | time $EXE \ | 28 | time $EXE \ |
| @@ -47,8 +47,8 @@ log "Start testing ${repo_url}" | @@ -47,8 +47,8 @@ log "Start testing ${repo_url}" | ||
| 47 | repo=sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01 | 47 | repo=sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01 |
| 48 | 48 | ||
| 49 | log "Download pretrained model and test-data from $repo_url" | 49 | log "Download pretrained model and test-data from $repo_url" |
| 50 | -wget $repo_url | ||
| 51 | -tar jxvf ${ropo}.tar.bz | 50 | +wget -qq $repo_url |
| 51 | +tar jxvf ${repo}.tar.bz | ||
| 52 | 52 | ||
| 53 | time $EXE \ | 53 | time $EXE \ |
| 54 | --tokens=$repo/tokens.txt \ | 54 | --tokens=$repo/tokens.txt \ |
| @@ -8,6 +8,7 @@ on: | @@ -8,6 +8,7 @@ on: | ||
| 8 | - '*' | 8 | - '*' |
| 9 | paths: | 9 | paths: |
| 10 | - '.github/workflows/linux.yaml' | 10 | - '.github/workflows/linux.yaml' |
| 11 | + - '.github/scripts/test-kws.sh' | ||
| 11 | - '.github/scripts/test-online-transducer.sh' | 12 | - '.github/scripts/test-online-transducer.sh' |
| 12 | - '.github/scripts/test-online-paraformer.sh' | 13 | - '.github/scripts/test-online-paraformer.sh' |
| 13 | - '.github/scripts/test-offline-transducer.sh' | 14 | - '.github/scripts/test-offline-transducer.sh' |
| @@ -24,6 +25,7 @@ on: | @@ -24,6 +25,7 @@ on: | ||
| 24 | - master | 25 | - master |
| 25 | paths: | 26 | paths: |
| 26 | - '.github/workflows/linux.yaml' | 27 | - '.github/workflows/linux.yaml' |
| 28 | + - '.github/scripts/test-kws.sh' | ||
| 27 | - '.github/scripts/test-online-transducer.sh' | 29 | - '.github/scripts/test-online-transducer.sh' |
| 28 | - '.github/scripts/test-online-paraformer.sh' | 30 | - '.github/scripts/test-online-paraformer.sh' |
| 29 | - '.github/scripts/test-offline-transducer.sh' | 31 | - '.github/scripts/test-offline-transducer.sh' |
| @@ -8,6 +8,7 @@ on: | @@ -8,6 +8,7 @@ on: | ||
| 8 | - '*' | 8 | - '*' |
| 9 | paths: | 9 | paths: |
| 10 | - '.github/workflows/macos.yaml' | 10 | - '.github/workflows/macos.yaml' |
| 11 | + - '.github/scripts/test-kws.sh' | ||
| 11 | - '.github/scripts/test-online-transducer.sh' | 12 | - '.github/scripts/test-online-transducer.sh' |
| 12 | - '.github/scripts/test-online-paraformer.sh' | 13 | - '.github/scripts/test-online-paraformer.sh' |
| 13 | - '.github/scripts/test-offline-transducer.sh' | 14 | - '.github/scripts/test-offline-transducer.sh' |
| @@ -22,6 +23,7 @@ on: | @@ -22,6 +23,7 @@ on: | ||
| 22 | - master | 23 | - master |
| 23 | paths: | 24 | paths: |
| 24 | - '.github/workflows/macos.yaml' | 25 | - '.github/workflows/macos.yaml' |
| 26 | + - '.github/scripts/test-kws.sh' | ||
| 25 | - '.github/scripts/test-online-transducer.sh' | 27 | - '.github/scripts/test-online-transducer.sh' |
| 26 | - '.github/scripts/test-online-paraformer.sh' | 28 | - '.github/scripts/test-online-paraformer.sh' |
| 27 | - '.github/scripts/test-offline-transducer.sh' | 29 | - '.github/scripts/test-offline-transducer.sh' |
| @@ -33,17 +33,17 @@ mkdir -p apks | @@ -33,17 +33,17 @@ mkdir -p apks | ||
| 33 | repo=sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01 | 33 | repo=sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01 |
| 34 | 34 | ||
| 35 | if [ ! -d ./android/SherpaOnnxKws/app/src/main/assets/$repo ]; then | 35 | if [ ! -d ./android/SherpaOnnxKws/app/src/main/assets/$repo ]; then |
| 36 | - repo_url=https://www.modelscope.cn/pkufool/sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01.git | 36 | + |
| 37 | + 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 | ||
| 37 | log "Start testing ${repo_url}" | 38 | log "Start testing ${repo_url}" |
| 39 | + | ||
| 38 | log "Download pretrained model and test-data from $repo_url" | 40 | log "Download pretrained model and test-data from $repo_url" |
| 39 | - GIT_LFS_SKIP_SMUDGE=1 git clone $repo_url | ||
| 40 | - pushd $repo | ||
| 41 | - git lfs pull --include "*.onnx" | 41 | + wget -qq $repo_url |
| 42 | + tar jxvf ${repo}.tar.bz | ||
| 42 | 43 | ||
| 43 | - # remove .git to save spaces | ||
| 44 | - rm -rf .git | 44 | + pushd $repo |
| 45 | rm *.int8.onnx | 45 | rm *.int8.onnx |
| 46 | - rm README.md configuration.json .gitattributes | 46 | + rm README.md |
| 47 | rm -rfv test_wavs | 47 | rm -rfv test_wavs |
| 48 | ls -lh | 48 | ls -lh |
| 49 | popd | 49 | popd |
| @@ -85,17 +85,15 @@ rm -rf ./android/SherpaOnnxKws/app/src/main/assets/$repo | @@ -85,17 +85,15 @@ rm -rf ./android/SherpaOnnxKws/app/src/main/assets/$repo | ||
| 85 | repo=sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01 | 85 | repo=sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01 |
| 86 | 86 | ||
| 87 | if [ ! -d ./android/SherpaOnnxKws/app/src/main/assets/$repo ]; then | 87 | if [ ! -d ./android/SherpaOnnxKws/app/src/main/assets/$repo ]; then |
| 88 | - repo_url=https://www.modelscope.cn/pkufool/sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01.git | 88 | + 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 |
| 89 | log "Start testing ${repo_url}" | 89 | log "Start testing ${repo_url}" |
| 90 | log "Download pretrained model and test-data from $repo_url" | 90 | log "Download pretrained model and test-data from $repo_url" |
| 91 | - GIT_LFS_SKIP_SMUDGE=1 git clone $repo_url | ||
| 92 | - pushd $repo | ||
| 93 | - git lfs pull --include "*.onnx" | 91 | + wget -qq $repo_url |
| 92 | + tar jxvf ${repo}.tar.bz | ||
| 94 | 93 | ||
| 95 | - # remove .git to save spaces | ||
| 96 | - rm -rf .git | 94 | + pushd $repo |
| 97 | rm *.int8.onnx | 95 | rm *.int8.onnx |
| 98 | - rm README.md configuration.json .gitattributes | 96 | + rm README.md |
| 99 | rm -rfv test_wavs | 97 | rm -rfv test_wavs |
| 100 | ls -lh | 98 | ls -lh |
| 101 | popd | 99 | popd |
-
请 注册 或 登录 后发表评论