SenseVoice icon indicating copy to clipboard operation
SenseVoice copied to clipboard

模型可以使用FunASR的AutoModel,并集成CAM++、PUNC、VAD等模型吗

Open YouTwoMeToo opened this issue 6 months ago • 3 comments

Notice: In order to resolve issues more efficiently, please raise issue following the template. (注意:为了更加高效率解决您遇到的问题,请按照模板提问,补充细节)

❓ Questions and Help

Before asking:

  1. search the issues.
  2. search the docs.

What is your question?

Code

What have you tried?

What's your environment?

  • OS (e.g., Linux):
  • FunASR Version (e.g., 1.0.0):
  • ModelScope Version (e.g., 1.11.0):
  • PyTorch Version (e.g., 2.0.0):
  • How you installed funasr (pip, source):
  • Python version:
  • GPU (e.g., V100M32)
  • CUDA/cuDNN version (e.g., cuda11.7):
  • Docker version (e.g., funasr-runtime-sdk-cpu-0.4.1)
  • Any other relevant information:

YouTwoMeToo avatar Jun 30 '25 07:06 YouTwoMeToo

当然可以了,funasr的readme早都已经更新了。

Image

yaleimeng avatar Jul 01 '25 01:07 yaleimeng

启用 CAM++ 后一直出错:

model_dir = "iic/SenseVoiceSmall"

model = AutoModel(
    model=model_dir,
    vad_model="fsmn-vad",
    vad_kwargs={"max_single_segment_time": 10000},
    punc_model="ct-punc", 
    spk_model="cam++",
    device="cpu",
)

错误信息如下: WARNING:root:length mismatch between punc and timestamp | 1/1 [00:00<00:00, 15.47it/s] Traceback (most recent call last): File "/home/xxx/projects/ai/src/funasr/sensevoice.py", line 23, in res = model.generate( File "/home/xxx/miniconda3/envs/funasr/lib/python3.9/site-packages/funasr/auto/auto_model.py", line 306, in generate return self.inference_with_vad(input, input_len=input_len, **cfg) File "/home/xxx/miniconda3/envs/funasr/lib/python3.9/site-packages/funasr/auto/auto_model.py", line 593, in inference_with_vad sentence_list = timestamp_sentence( File "/home/xxx/miniconda3/envs/funasr/lib/python3.9/site-packages/funasr/utils/timestamp_tools.py", line 163, in timestamp_sentence sentence_text_seg[:-1] if sentence_text_seg[-1] == " " else sentence_text_seg IndexError: string index out of range 0%|

xiaokun avatar Jul 19 '25 09:07 xiaokun

我遇到这种情况,估计还不支持CAM++,你现在解决了吗

jinwater88 avatar Sep 09 '25 07:09 jinwater88