modelscope / FunASR

A Fundamental End-to-End Speech Recognition Toolkit and Open Source SOTA Pretrained Models, Supporting Speech Recognition, Voice Activity Detection, Text Post-processing etc.
https://www.funasr.com
Other
5.92k stars 644 forks source link

GPU版本:[W shape_analysis.cpp:841] failed PropagateTensorShapeOnNode with schema #2021

Open zhanglv0209 opened 1 month ago

zhanglv0209 commented 1 month ago

启动: bash run_server.sh --download-model-dir /workspace/models --vad-dir damo/speech_fsmn_vad_zh-cn-16k-common-onnx --model-dir damo/speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common-vocab8404-pytorch --punc-dir damo/punc_ct-transformer_cn-en-common-vocab471067-large-onnx --lm-dir damo/speech_ngram_lm_zh-cn-ai-wesp-fst --itn-dir thuduj12/fst_itn_zh --hotword /workspace/models/hotwords.txt --certfile 0

报错: [W shape_analysis.cpp:841] failed PropagateTensorShapeOnNode with schema: aten::pad(Tensor self, int[] pad, str mode="constant", float? value=None) -> (Tensor) %input.887 : Float(, , *, requires_grad=0, device=cuda:0) = aten::pad(%input.885, %5190, %5191, %5192), scope: module.model.encoders/module.model.encoders.43/__module.model.encoders.43.self_attn/__module.model.encoders.43.self_attn.pad_fn # /usr/local/lib/python3.8/dist-packages/torch/nn/modules/padding.py:23:0

dfengpo commented 3 weeks ago

这是警告而已,可以忽略,也可以在docker内部安装torch解决