#7417 System Error (None): NoneTraceback (most recent call last):

38.179**7 Posted at: 2 hours ago

System Error (None): None
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 89, in run
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

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


=
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 本地翻译模型文件不完整,缺少 sentencepiece.model 文件。这通常是因为模型自动下载失败或下载不完整导致的(M2M100 模型体积较大,约 12B,自动下载经常失败)。

解决方案:

  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. 如果已有旧的不完整模型文件夹,请先删除后再覆盖,避免残留残缺文件。
  4. 完成后重新执行任务。

补充建议:M2M100 是纯本地 CPU 翻译模型,速度较慢。若追求更好的翻译质量与效率,推荐改用 DeepSeek 等 AI 翻译渠道(需在 菜单 → 翻译设置 → DeepSeek 中填入 API Key)。

请查阅相关文档:

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