Skip to content

不支持Whisper-large-v3么 #140

@weii918

Description

@weii918

将模型换成Whisper-large-v3,启动报错

Image

rec_result = self.funasr_model.generate(data,
File "/root/miniconda3/envs/FunClip/lib/python3.10/site-packages/funasr/auto/auto_model.py", line 306, in generate
return self.inference_with_vad(input, input_len=input_len, **cfg)
File "/root/miniconda3/envs/FunClip/lib/python3.10/site-packages/funasr/auto/auto_model.py", line 464, in inference_with_vad
results = self.inference(
File "/root/miniconda3/envs/FunClip/lib/python3.10/site-packages/funasr/auto/auto_model.py", line 345, in inference
res = model.inference(**batch, **kwargs)
File "/root/miniconda3/envs/FunClip/lib/python3.10/site-packages/funasr/models/whisper/model.py", line 66, in inference
raise NotImplementedError("batch decoding is not implemented")
NotImplementedError: batch decoding is not implemented

修改 videoclipper.py 文件,增加如下参数,能正常启动,运行识别 srt 时仍然报错
DecodingOptions = {
"task": "transcribe",
"language": None,
"beam_size": None,
"fp16": True,
"without_timestamps": False,
"prompt": None,
}
rec_result = self.funasr_model.generate(data,
DecodingOptions=DecodingOptions,
batch_size_s=60,

return_spk_res=True,
return_raw_text=True,
is_final=True,
output_dir=output_dir,
hotword=hotwords,
pred_timestamp=self.lang=='en',
en_post_proc=self.lang=='en',
cache={})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions