From 259343dda5a4589f067dc4af5edf165101303845 Mon Sep 17 00:00:00 2001 From: YC <13186087857@163.com> Date: Mon, 29 Jul 2024 09:48:34 +0800 Subject: [PATCH] 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). --- .../industrial_data_pretraining/paraformer/infer_from_local.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/industrial_data_pretraining/paraformer/infer_from_local.sh b/examples/industrial_data_pretraining/paraformer/infer_from_local.sh index 06c9ca620..6c6e84904 100644 --- a/examples/industrial_data_pretraining/paraformer/infer_from_local.sh +++ b/examples/industrial_data_pretraining/paraformer/infer_from_local.sh @@ -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"