FunASR
FunASR copied to clipboard
使用paraformer进行ASR时无法正确获取模型
OS: Linux
Python/C++ Version:python 3.9.17
Package Version: pytorch: 2.0.1 torchaudio: 2.0.2 modelscope: 1.9.0 funasr version(pip list): 0.7.6
Model:speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-pytorch
Command: python paraformer_infer.py --wav_dir xxxx --output_dir xxxx (就是单纯地调用了inference)
Details: [code]: inference_pipeline = pipeline( task=Tasks.auto_speech_recognition, model='damo/speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-pytorch', model_revision="v1.2.4", output_dir=result_dir, ) inference_pipeline(audio_in=wav_scp_path) (ps:同样的代码,之前能运行,但是wav.scp文件内视频太多时,会有timestamp溢出)
Error log: 【本次问题:无法识别】 2023-09-13 23:02:54,876 - modelscope - INFO - PyTorch version 2.0.1 Found. 2023-09-13 23:02:54,876 - modelscope - INFO - Loading ast index from /home/code/liuzhechen/.cache/modelscope/ast_indexer 2023-09-13 23:02:54,982 - modelscope - INFO - Loading done! Current index file version is 1.9.0, with md5 6aeb508bfe7a12737daa49bb605d404b and a total number of 921 components indexed Traceback (most recent call last): File "/home/code/liuzhechen/miniconda3/envs/pyt2.0/lib/python3.9/site-packages/requests/models.py", line 971, in json return complexjson.loads(self.text, **kwargs) File "/home/code/liuzhechen/miniconda3/envs/pyt2.0/lib/python3.9/site-packages/simplejson/init.py", line 514, in loads return _default_decoder.decode(s) File "/home/code/liuzhechen/miniconda3/envs/pyt2.0/lib/python3.9/site-packages/simplejson/decoder.py", line 386, in decode obj, end = self.raw_decode(s) File "/home/code/liuzhechen/miniconda3/envs/pyt2.0/lib/python3.9/site-packages/simplejson/decoder.py", line 416, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/code/liuzhechen/miniconda3/envs/pyt2.0/lib/python3.9/site-packages/modelscope/pipelines/util.py", line 35, in is_official_hub_impl _ = HubApi().get_model(path, revision=revision) File "/home/code/liuzhechen/miniconda3/envs/pyt2.0/lib/python3.9/site-packages/modelscope/hub/api.py", line 229, in get_model if is_ok(r.json()): File "/home/code/liuzhechen/miniconda3/envs/pyt2.0/lib/python3.9/site-packages/requests/models.py", line 975, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/code/liuzhechen/paraformer_test/paraformer_infer.py", line 46, in
【之前的问题:index越界】
Traceback (most recent call last):
File "/home/code/liuzhechen/paraformer_test/paraformer_infer.py", line 49, in
Do you use any multi-theads to decode with the pipeline?