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

120.217**0 Posted at: 58 minutes 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:/My Softwares/翻译配音 Pyvideotran 4.12-0912/models/m2m100_12b/sentencepiece.model": No such file or directory Error #2

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: E:/梦魇姐妹 1988.mp4,
输出结果保存到文件夹: E:/_video_out/梦魇 1988-mp4,
临时文件夹: D:/My Softwares/翻译配音 Pyvideotran 4.12-0912/tmp/7976/ab409a8382
已选 清理已存在
已启用CUDA加速
已选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:M2M100(内置),原始语言:英语,目标语言:简体中文, 未选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入软字幕
video_duration_ms=4946201


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/My Softwares/翻译配音 Pyvideotran 4.12-0912

1 Replies

#1 DeepSeek reply at 58 minutes ago

这是由于 M2M100 本地翻译模型文件缺失导致的。报错明确显示缺少 D:/My Softwares/翻译配音 Pyvideotran 4.12-0912/models/m2m100_12b/sentencepiece.model,说明模型未完整下载或下载失败。

解决方案:

  1. 手动下载 M2M100 模型压缩包:https://modelscope.cn/models/himyworld/videotrans/resolve/master/m2m100_12b_model.zip
  2. 解压得到 m2m100_12b 文件夹,将其完整复制到 软件目录/models/ 下(即 D:/My Softwares/翻译配音 Pyvideotran 4.12-0912/models/m2m100_12b)。
  3. 确认该目录内包含 sentencepiece.model 等完整文件。
  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