#1410 Exception: data did not match any variant of untagged enum ModelWrapper at line 264903 column 3

27.10* Posted at: 4 hours ago 👁7

语音识别阶段出错:[faster-whisper(本地)] 运行时错误:Traceback (most recent call last):
File "videotrans\process\_overall.py", line 45, in run
File "faster_whisper\transcribe.py", line 690, in init
Exception: data did not match any variant of untagged enum ModelWrapper at line 264903 column 3
:
Traceback (most recent call last):
File "videotrans\task\job.py", line 105, in run
File "videotrans\task\_speech2text.py", line 133, in recogn
File "videotrans\recognition\__init__.py", line 242, in run
File "videotrans\recognition\_base.py", line 78, in run
File "videotrans\recognition\_overall.py", line 199, in _exec
RuntimeError: Traceback (most recent call last):
File "videotrans\process\_overall.py", line 45, in run
File "faster_whisper\transcribe.py", line 690, in init
Exception: data did not match any variant of untagged enum ModelWrapper at line 264903 column 3


=
system:Windows-10-10.0.26100-SP0
version:v3.83
frozen:True
language:zh
root_dir:E:/软件/win-videotrans-v3.83

1 Replies

这个错误是由于 faster-whisper 模型文件损坏或不完整导致的。请按以下步骤解决:

  1. 删除损坏的模型文件

    • 打开软件根目录下的 models 文件夹(路径:E:/软件/win-videotrans-v3.83/models)。
    • 删除其中所有与 faster-whisper 相关的模型文件夹(通常以 whisper 或模型尺寸如 large-v3 命名)。
  2. 重新下载模型

    • 重新启动软件,再次执行任务。
    • 软件会自动重新下载所需的模型文件。
  3. 如果下载失败

    • 菜单-翻译设置 中为 faster-whisper 设置网络代理地址(如 http://127.0.0.1:10808),以加速或确保下载成功。
    • 或者,手动从 Hugging Face 下载模型并放置到 models 文件夹中。

完成以上操作后,错误应被解决。

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

Trending Questions