fix error: _pickle.UnpicklingError: invalid load key, 'v'. (#1966)

some one run this script will got the below error keywords:

`_pickle.UnpicklingError: invalid load key, 'v'.`

so add `lfs` to `git clone`.

well, more detail can see in [this Issue comment](https://github.com/modelscope/FunASR/issues/1859#issuecomment-2254177392).
This commit is contained in:
YC 2024-07-29 09:48:34 +08:00 committed by GitHub
parent 9f04fd130c
commit 259343dda5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,7 @@ workspace=`pwd`
local_path_root=${workspace}/modelscope_models
mkdir -p ${local_path_root}
local_path=${local_path_root}/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch
git clone https://www.modelscope.cn/damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch.git ${local_path}
git lfs clone https://www.modelscope.cn/damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch.git ${local_path}
device="cuda:0" # "cuda:0" for gpu0, "cuda:1" for gpu1, "cpu"