#6414 翻译字幕阶段出错 [Hy-MT2-1.8B(本地内置)] 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

182.129.**1 Posted at: 2 hours ago

翻译字幕阶段出错 [Hy-MT2-1.8B(本地内置)] 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

Traceback (most recent call last):

File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions

File "httpx\_transports\default.py", line 127, in iter

File "httpcore\_sync\connection_pool.py", line 367, in iter

File "httpcore\_sync\connection_pool.py", line 363, in iter

File "httpcore\_sync\http11.py", line 349, in iter

File "httpcore\_sync\http11.py", line 341, in iter

File "httpcore\_sync\http11.py", line 210, in _receive_response_body

File "httpcore\_sync\http11.py", line 220, in _receive_event

File "contextlib.py", line 153, in exit

File "httpcore\_exceptions.py", line 14, in map_exceptions

httpcore.RemoteProtocolError: peer closed connection without sending complete message body (received 3337363 bytes, expected 4077072784)

The above exception was the direct cause of the following exception:

Traceback (most recent call
......
, in map_httpcore_exceptions

httpx.RemoteProtocolError: peer closed connection without sending complete message body (received 3337363 bytes, expected 4077072784)

During handling of the above exception, another exception occurred:

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 47, in trans

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

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

File "videotrans\translator\_hymt2.py", line 20, in _download

File "videotrans\util\help_down.py", line 166, in check_and_down_hf

videotrans.configure.excepts.DownloadModelsError: 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

cfg=TaskCfgSTS(uuid='19b18189d1', name='D:/BaiduNetdiskDownload/视频资料/MusicDevelopments - Videos/01. Chords And Progressions On The RapidComposer Master Track.srt', dirname='D:/BaiduNetdiskDownload/视频资料/MusicDevelopments - Videos', noextname='01. Chords And Progressions On The RapidComposer Master Track', basename='01. Chords And Progressions On The RapidComposer Master Track.srt', ext='srt', target_dir='D:/BaiduNetdiskDownload/视频翻译软件/win-pyvideotrans-v4.07/output/translate', cache_folder=None, is_cuda=False, source_language=None, source_language_code='English', source_sub='D:/BaiduNetdiskDownload/视频资料/MusicDevelopments - Videos/01. Chords And Progressions On The RapidComposer Master Track.srt', source_wav=None, source_wav_output=None, target_language=None, target_language_code='Simplified Chinese', target_sub='D:/BaiduNetdiskDownload/视频翻译软件/win-pyvideotrans-v4.07/output/translate/01. Chords And Progressions On The RapidComposer Master Track.Simplified Chinese.srt', target_wav=None, target_wav_output=None, translate_type=3)


=
system:Windows-10-10.0.26100-SP0
version:v4.07
frozen:True
language:zh
root_dir:D:/BaiduNetdiskDownload/pyVideoTrans/win-pyvideotrans-v4.07

1 Replies

这是模型自动下载时连接中断导致文件不完整引起的:报错显示只收到约3.3MB,而模型预期约4GB,属于典型网络不稳定或HuggingFace访问被中断。

解决办法:手动下载 Hy-MT2-1.8B 模型后放到软件指定目录。

  1. 打开模型下载页:https://huggingface.co/tencent/Hy-MT2-1.8B/tree/main ,下载该页面的全部文件(包含 config.json、model.safetensors 等)。
  2. 将下载的文件放到软件根目录下的 models/models--tencent--Hy-MT2-1.8B 文件夹内(完整路径类似:D:/BaiduNetdiskDownload/pyVideoTrans/win-pyvideotrans-v4.07/models/models--tencent--Hy-MT2-1.8B)。
  3. 如果浏览器自动重命名了文件(如 model(2).safetensors),必须改回 model.safetensors 原名。
  4. 如果无法访问 HuggingFace,可使用镜像站下载:https://hf-mirror.com/tencent/Hy-MT2-1.8B/tree/main ,同样将文件放入上述目录。
  5. 模型文件放置完成后,重新运行软件并再次执行翻译任务即可。

如果仍无法解决,也可以改用其他翻译渠道,例如 M2M100(内置) 本地翻译,或配置 DeepSeek 在线翻译。

请查阅相关文档:

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