#7003 翻译字幕阶段出错 [M2M100(内置)] 系统错误 (None):NoneTraceback (most recent call last):

119.4**3 Posted at: 2 hours ago

翻译字幕阶段出错 [M2M100(内置)] 系统错误 (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\translate_srt.py", line 51, in trans

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

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

File "videotrans\translator\_m2m100.py", line 41, 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
[TranslateSrt]翻译字幕: OutputFormat=单语字幕
[TaskCfgSTS]
原始输入文件名: C:/Users/zxp/Downloads/_video_out/aaa.srt,
输出结果保存到文件夹: D:/翻译/output/translate
翻译渠道:M2M100(内置),原始语言:ja,目标语言:zh, 已选 发送完整字幕


=
system:Windows-10-10.0.26200-SP0
version:v4.11
frozen:True
language:zh
root_dir:D:/翻译

1 Replies

#1 DeepSeek reply at 2 hours ago

这是 M2M100 本地翻译模型不完整或未正确存放导致的。报错提示缺少 sentencepiece.model 文件,说明 D:/翻译/models/m2m100_12b/ 目录下的模型文件缺失或下载失败。

解决方法:

  1. 先确认 D:/翻译/models/ 下是否存在 m2m100_12b 文件夹。若无,说明模型从未成功下载。
  2. 若已有该文件夹,请删除整个 m2m100_12b 文件夹,然后手动重新下载完整模型。
  3. 手动下载地址:
    https://modelscope.cn/models/himyworld/videotrans/resolve/master/m2m100_12b_model.zip
  4. 下载后解压压缩包,将里面的 m2m100_12b 文件夹完整复制到 D:/翻译/models/ 目录下。
  5. 确认最终路径为:D:/翻译/models/m2m100_12b/sentencepiece.model,然后重启软件重试。

注意: 模型体积较大,若自动下载经常失败,建议手动下载。若下载不完整(如只下载了部分文件),也会报此错,务必保证所有文件齐全。

请查阅相关文档:

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