AssertionError: FunASRNano is not registered

#4
by Zenitshi - opened

why does this happen idk where to find the model.py or idk what do i need to fix this:

funasr version: 1.2.9.
Downloading Model from https://www.modelscope.cn to directory: C:\x\x.cache\modelscope\hub\models\FunAudioLLM\Fun-ASR-Nano-2512
WARNING:root:trust_remote_code: True
Loading remote code failed: model, No module named 'model'
Traceback (most recent call last):
File "c:\x\x\Documents\Coding\Cursor\Axo\s.py", line 4, in
model = AutoModel(
^^^^^^^^^^
File "C:\x\x\AppData\Roaming\Python\Python312\site-packages\funasr\auto\auto_model.py", line 125, in init
model, kwargs = self.build_model(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\x\x\AppData\Roaming\Python\Python312\site-packages\funasr\auto\auto_model.py", line 264, in build_model
assert model_class is not None, f'{kwargs["model"]} is not registered'
^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: FunASRNano is not registered

you can download the vad_model local,then like this
image

手动下载模型:找一台能正常访问 ModelScope 的机器,通过以下方式下载模型:

使用 modelscope 库

from modelscope import snapshot_download
model_dir = snapshot_download('iic/speech_fsmn_vad_zh-cn-16k-common-pytorch')

然后复制整个 model_dir 到你的服务器

Zenitshi changed discussion status to closed

Sign up or log in to comment