创建模块对象使用的是spk_model="cam++"方式报错了,请大佬们帮忙看看,感谢

Đang mở
#2,546 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
backend, machine-learning

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

question

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

Ngôn ngữ chính
Python
Star
21.2k
Fork
2.2k
Merge trung bình
5 giờ 38 phút
Pull request đã merge (30 ngày)
116

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của modelscope/FunASR

Tất cả issue của modelscope/FunASR

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.