#635 AssertionError: tiny is not registered

*113.22* Posted at: 14 hours ago 👁13

语音识别阶段出错:tiny is not registered:Traceback (most recent call last):

File "videotrans\task\job.py", line 79, in run

File "videotrans\task\_speech2text.py", line 93, in recogn

File "videotrans\recognition\__init__.py", line 227, in run

File "videotrans\recognition\_base.py", line 68, in run

File "videotrans\recognition\_funasr.py", line 71, in _exec

File "funasr\auto\auto_model.py", line 125, in __init__

model, kwargs = self.build_model(kwargs)

File "funasr\auto\auto_model.py", line 261, in build_model

assert model_class is not None, f'{kwargs["model"]} is not registered'

AssertionError: tiny is not registered

=====

Windows-10-10.0.19045-SP0

version:v3.79

frozen:True

language:zh

1 Replies

本条内容由 DeepSeek 回复
这个问题的核心原因是 pyVideoTrans 在启动语音识别模型时,无法找到名为 "tiny" 的模型。这通常是由于软件依赖的 funasr 语音识别库的模型文件缺失或损坏所致。

解决方案:

1. 重新安装软件:这是最直接有效的解决方法。请前往 pyVideoTrans 的官方网站 https://pyvideotrans.com/downpackage 下载最新版本的软件安装包,然后完全卸载当前版本并重新安装。新安装包会包含完整且正确的模型文件。

2. 检查网络连接:如果软件是首次运行,它可能需要从网络下载必要的模型文件。请确保您的网络连接稳定,并重新启动软件尝试。

问题分析:

根据您提供的错误日志,关键错误信息是 AssertionError: tiny is not registered。这发生在 pyVideoTrans 调用其内置的 funasr 语音识别引擎来加载一个名为 "tiny" 的模型时。软件期望使用这个模型来识别视频中的人声,但系统提示该模型“未注册”,即模型文件不存在或无法被正确识别。

这种情况在软件文件不完整、安装过程中断或模型文件被意外删除时可能出现。由于您使用的是 Windows 冻结版本(frozen:True),重新安装是整个重置依赖环境最可靠的方式。

请尝试以上解决方案,如果问题依旧,建议访问项目的源码仓库 https://github.com/jianchang512/pyvideotrans 查看是否有其他用户遇到类似问题或创建新的 issue。

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions