YC
2024-07-29 259343dda5a4589f067dc4af5edf165101303845
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).
1个文件已修改
2 ■■■ 已修改文件
examples/industrial_data_pretraining/paraformer/infer_from_local.sh 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
examples/industrial_data_pretraining/paraformer/infer_from_local.sh
@@ -14,7 +14,7 @@
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"