FunASR
FunASR copied to clipboard
无法加载Qwen/Qwen-Audio
macbook pro m4,Python 3.11 ,funasr 1.2.6
from funasr import AutoModel
model = AutoModel(model="Qwen/Qwen2-Audio-7B")
audio_in = "/Users/hello/voice/output_000.mp3" prompt = "<|startoftranscription|><|en|><|transcribe|><|en|><|notimestamps|><|wo_itn|>"
res = model.generate(input=audio_in, prompt=prompt) print(res)
提示AssertionError: Qwen-Audio is not registered,
我通过这个代码查看funasr 1.2.6版本中貌似没注册这个模型, from funasr.register import tables tables.print() 输出 model_classes 中的确没有Qwen Audio
如果需要手工注册下,如何注册?