创建模块对象使用的是spk_model="cam++"方式报错了,请大佬们帮忙看看,感谢
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- python
调研方向
Start in funasr/auto/auto_model.py at the ClusterBackend construction shown in the traceback, then trace where ClusterBackend should be imported or defined. Check the speaker diarization initialization path and reproduce with the provided AutoModel arguments. Done means the model initializes without the NameError; this issue has had no comments for over a year, so confirm the failure still occurs.
由索引模型根据 Issue 内容生成。
描述
funasr版本:1.26.0
代码:
model = AutoModel(
model="paraformer-zh",
vad_model="fsmn-vad",
punc_model="ct-punc",
spk_model="cam++",
device="cpu",
quantize=True
)
报错:
Traceback (most recent call last):
File "C:\Users\admin\AppData\Roaming\JetBrains\IntelliJIdea2025.1\plugins\python-ce\helpers\pydev\pydevd.py", line 1570, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Roaming\JetBrains\IntelliJIdea2025.1\plugins\python-ce\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "D:\Work Project\py-opencv\src\py-funasr.py", line 199, in
fsmn_vad()
File "D:\Work Project\py-opencv\src\py-funasr.py", line 15, in fsmn_vad
model = AutoModel(
^^^^^^^^^^
File "D:\WorkSpace\Python\Lib\site-packages\funasr\auto\auto_model.py", line 159, in init
self.cb_model = ClusterBackend(**cb_kwargs).to(kwargs["device"])
^^^^^^^^^^^^^^
NameError: name 'ClusterBackend' is not defined
python-BaseException
- 主要语言
- Python
- 星标
- 21.2k
- 派生
- 2.2k
- 平均合并
- 5 小时 38 分钟
- 30 天内合并 PR
- 116
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
modelscope/FunASR 的其他 Issue
-
[Bug] ClusterBackend passes torch.Tensor to UMAP 0.6.0, causing a torch.float32 dtype TypeError可能已有人在做 @hansazilinon-art 于 18 天前认领。 未关闭bug needs triage
难度 2/5 1-3 小时 新手友好度 84/100
modelscope/FunASR#3908 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
modelscope/FunASR#3801 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
modelscope/FunASR#3796 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
modelscope/FunASR#3762 · 1 条评论 ·
维护者通常 1 天内回复
-
Bug: blank lines in wav.scp / jsonl file lists crash prepare_data_iterator (IndexError / JSONDecodeError)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭needs feedback
难度 2/5 1-3 小时 新手友好度 85/100
modelscope/FunASR#3757 · 1 条评论 ·
维护者通常 1 天内回复
查看 modelscope/FunASR 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
AIR-Bench Foundation reads the first letter of the word after "answer" as the model's choice可能已有人在做 @beartester34 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
modelscope/evalscope#2330 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
Distribution plot crashes when a numeric feature is constant in the train or test set可能已有人在做 @adembilge 今天认领。 未关闭bug good first issue
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 10 天内回复