Committed by
GitHub
Change model url from modelscope to github (#538)
正在显示
1 个修改的文件
包含
10 行增加
和
14 行删除
| @@ -17,16 +17,13 @@ log "------------------------------------------------------------" | @@ -17,16 +17,13 @@ log "------------------------------------------------------------" | ||
| 17 | log "Run Chinese keyword spotting (Wenetspeech)" | 17 | log "Run Chinese keyword spotting (Wenetspeech)" |
| 18 | log "------------------------------------------------------------" | 18 | log "------------------------------------------------------------" |
| 19 | 19 | ||
| 20 | -repo_url=https://www.modelscope.cn/pkufool/sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01.git | 20 | +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 |
| 21 | log "Start testing ${repo_url}" | 21 | 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 | -log "Download pretrained model and test-data from $repo_url" | ||
| 24 | 23 | ||
| 25 | -GIT_LFS_SKIP_SMUDGE=1 git clone $repo_url | ||
| 26 | -pushd $repo | ||
| 27 | -git lfs pull --include "*.onnx" | ||
| 28 | -ls -lh *.onnx | ||
| 29 | -popd | 24 | +log "Download pretrained model and test-data from $repo_url" |
| 25 | +wget $repo_url | ||
| 26 | +tar jxvf ${repo}.tar.bz | ||
| 30 | 27 | ||
| 31 | time $EXE \ | 28 | time $EXE \ |
| 32 | --tokens=$repo/tokens.txt \ | 29 | --tokens=$repo/tokens.txt \ |
| @@ -39,21 +36,19 @@ time $EXE \ | @@ -39,21 +36,19 @@ time $EXE \ | ||
| 39 | $repo/test_wavs/3.wav $repo/test_wavs/4.wav $repo/test_wavs/5.wav $repo/test_wavs/6.wav | 36 | $repo/test_wavs/3.wav $repo/test_wavs/4.wav $repo/test_wavs/5.wav $repo/test_wavs/6.wav |
| 40 | 37 | ||
| 41 | rm -rf $repo | 38 | rm -rf $repo |
| 39 | +rm -rf ${repo}.tar.bz | ||
| 42 | 40 | ||
| 43 | log "------------------------------------------------------------" | 41 | log "------------------------------------------------------------" |
| 44 | log "Run English keyword spotting (Gigaspeech)" | 42 | log "Run English keyword spotting (Gigaspeech)" |
| 45 | log "------------------------------------------------------------" | 43 | log "------------------------------------------------------------" |
| 46 | 44 | ||
| 47 | -repo_url=https://www.modelscope.cn/pkufool/sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01.git | 45 | +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 |
| 48 | log "Start testing ${repo_url}" | 46 | log "Start testing ${repo_url}" |
| 49 | repo=sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01 | 47 | repo=sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01 |
| 50 | -log "Download pretrained model and test-data from $repo_url" | ||
| 51 | 48 | ||
| 52 | -GIT_LFS_SKIP_SMUDGE=1 git clone $repo_url | ||
| 53 | -pushd $repo | ||
| 54 | -git lfs pull --include "*.onnx" | ||
| 55 | -ls -lh *.onnx | ||
| 56 | -popd | 49 | +log "Download pretrained model and test-data from $repo_url" |
| 50 | +wget $repo_url | ||
| 51 | +tar jxvf ${ropo}.tar.bz | ||
| 57 | 52 | ||
| 58 | time $EXE \ | 53 | time $EXE \ |
| 59 | --tokens=$repo/tokens.txt \ | 54 | --tokens=$repo/tokens.txt \ |
| @@ -66,3 +61,4 @@ time $EXE \ | @@ -66,3 +61,4 @@ time $EXE \ | ||
| 66 | $repo/test_wavs/0.wav $repo/test_wavs/1.wav | 61 | $repo/test_wavs/0.wav $repo/test_wavs/1.wav |
| 67 | 62 | ||
| 68 | rm -rf $repo | 63 | rm -rf $repo |
| 64 | +rm -rf ${repo}.tar.bz |
-
请 注册 或 登录 后发表评论