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

2409:8a55* Posted at: 8 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 135, in process_task

File "videotrans\task\translate_srt.py", line 48, in trans

File "videotrans\translator\__init__.py", line 860, in run

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

File "videotrans\translator\_m2m100.py", line 75, 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
TaskCfgSTS(uuid='bc54384ac0', name='D:/index-muted-5AYV5QXK2H_20260728181738-mp4/en.srt', dirname='D:/index-muted-5AYV5QXK2H_20260728181738-mp4', noextname='en', basename='en.srt', ext='srt', target_dir='D:/index-muted-5AYV5QXK2H_20260728181738-mp4', cache_folder=None, is_cuda=False, source_language=None, source_language_code='en', source_sub='D:/index-muted-5AYV5QXK2H_20260728181738-mp4/en.srt', source_wav=None, source_wav_output=None, target_language=None, target_language_code='zh', target_sub='D:/index-muted-5AYV5QXK2H_20260728181738-mp4/en.zh.srt', target_wav=None, target_wav_output=None, translate_type=2)


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

1 Replies

问题在于 M2M100 本地翻译模型的模型文件缺失或存放位置错误。报错显示在 D:/翻译/models/m2m100_12b/ 下找不到 sentencepiece.model,但正确路径应为 D:/翻译/models/m2m100/sentencepiece.model(注意文件夹名不是 m2m100_12b)。

解决方法

  1. 关闭软件,检查 D:/翻译/models/ 目录。确认是有一个名为 m2m100 的文件夹(内含 sentencepiece.model 等文件),还是有一个名为 m2m100_12b 的文件夹。
  2. 若为 m2m100_12b:请将其重命名为 m2m100,确保文件夹名字完全正确。
  3. m2m100 文件夹不存在或内部文件不全:请手动下载模型并放置。下载地址:M2M100模型压缩包(约 1.5GB)。下载后解压,将解压得到的 m2m100 文件夹整体放入 D:/翻译/models/ 目录。
  4. 完成后重新启动软件,再次尝试翻译。
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.

Dondate via ko-fi.com

Dondate via PayPal

Related resource