#7416 翻译字幕阶段出错 [M2M100(内置)] System Error (None): NoneTraceback (most recent call last):

38.179**7 Posted at: 2 hours ago

翻译字幕阶段出错 [M2M100(内置)] System Error (None): None
Traceback (most recent call last):

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

File "videotrans\task\job.py", line 137, in process_task

File "videotrans\task\_stage_translate.py", line 31, in trans

File "videotrans\translator\_runner.py", line 67, in run

File "videotrans\translator\_base.py", line 62, in run

File "videotrans\translator\_m2m100.py", line 43, in _download

File "sentencepiece\__init__.py", line 468, in Init

File "sentencepiece\__init__.py", line 961, in Load

File "sentencepiece\__init__.py", line 316, in LoadFromFile

OSError: Not found: "D:/软件/models/m2m100_12b/sentencepiece.model": No such file or directory Error #2

self.cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: D:/A视频/成片/假电池.mp4,
输出结果保存到文件夹: D:/A视频/成片/_video_out/_video_out/假电池-mp4/假电池-mp4,
临时文件夹: D:/软件/tmp/2172/7ac8451460
已选 清理已存在
已启用CUDA加速
未选 降噪
已选 删除所有标点符号
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:M2M100(内置),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
输出字幕格式: 单字幕
代理地址:http://127.0.0.1:10808


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/软件

1 Replies

#1 DeepSeek reply at 2 hours ago

核心原因是 M2M100 本地翻译模型文件缺失或下载不完整:D:/软件/models/m2m100_12b/sentencepiece.model 文件不存在。

解决方法:

  1. 手动下载 M2M100 模型包:https://modelscope.cn/models/himyworld/videotrans/resolve/master/m2m100_12b_model.zip
  2. 解压后,将压缩包内的 m2m100_12b 文件夹完整复制到 D:/软件/models/ 目录下,最终结构应为 D:/软件/models/m2m100_12b/sentencepiece.model 等文件。
  3. 确保文件夹内所有文件齐全(若之前下载不完整,建议先删除 D:/软件/models/m2m100_12b 再重新复制)。
  4. 重启软件后重试。

如仍报错,请检查模型文件是否因下载中断而不完整,可重新下载覆盖。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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.

Dondate via ko-fi.com

Related resource