#6726 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

34.126.**1 Posted at: 2 hours ago

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

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 750639559 bytes, expected 3087284237)

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

Traceback (most recent call last):
File "videotrans\util\help_down.py", line
......
, **kwargs)
File "huggingface_hub\file_download.py", line 421, in http_get

for chunk in response.iter_bytes(chunk_size=constants.DOWNLOAD_CHUNK_SIZE):

File "httpx\_models.py", line 897, in iter_bytes
File "httpx\_models.py", line 951, in iter_raw
File "httpx\_client.py", line 153, in iter
File "httpx\_transports\default.py", line 126, in iter
File "contextlib.py", line 153, in exit
File "httpx\_transports\default.py", line 118, in map_httpcore_exceptions
httpx.RemoteProtocolError: peer closed connection without sending complete message body (received 750639559 bytes, expected 3087284237)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 70, in run
File "videotrans\task\_stage_recogn.py", line 63, in recogn
File "videotrans\recognition\__init__.py", line 211, in run
File "videotrans\recognition\_base.py", line 96, in run
File "videotrans\recognition\_whisper.py", line 50, in _download
File "videotrans\util\help_down.py", line 168, in check_and_down_hf
videotrans.configure.excepts.DownloadModelsError: 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/Downloads/Everything Goes On - Porter Robinson (Official Music Video) Star Guardian 2022 - League of Legends (1080p, h264).mp4,
输出结果保存到文件夹: D:/Downloads/_video_out/Everything Goes On - Porter Robinson (Official Music Video) Star Guardian 2022 - League of Legends (1080p, h264)-mp4,
临时文件夹: D:/1pyvedio/win-pyvideotrans-v4.10/tmp/10784/7780f0b590
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3, 发音语言: 英语, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Yunxi(Male/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 嵌入硬字幕
代理地址:http://127.0.0.1:7890


=
system:Windows-10-10.0.22621-SP0
version:v4.10
frozen:True
language:zh
root_dir:D:/1pyvedio/win-pyvideotrans-v4.10

1 Replies

#1 DeepSeek reply at 2 hours ago

这是网络下载中断导致的:模型文件(faster-whisper large-v3 约3GB)下载到约750MB时连接被远端关闭。代理 http://127.0.0.1:7890 连接不稳定或波动较大,建议采用手动下载模型的方式。

解决方案

  1. 先删除未下载完成的部分文件,避免缓存断点续传继续触发相同错误:

    • 进入 D:/1pyvedio/win-pyvideotrans-v4.10/models/models--Systran--faster-whisper-large-v3 文件夹,删除其中所有内容(尤其是 .incomplete 后缀文件)。
  2. 手动下载模型全部文件,从以下任选一个源:

  3. 将下载后的文件放入

    D:/1pyvedio/win-pyvideotrans-v4.10/models/models--Systran--faster-whisper-large-v3/

    注意:若浏览器自动重命名了同名文件(如 model(2).safetensors),必须改回原文件名。

  4. 完成后重新打开软件执行任务;如果仍无法自动识别,建议把语音识别模型改为 large-v3-turbo(约1.6GB,体积更小、速度更快),手动下载地址与存放目录为:

  5. 代理建议:请确认代理节点稳定;也可尝试在软件设置中更换更稳定的全局代理节点,或关闭代理后改为软件自动使用国内镜像下载。

请查阅相关文档:

Thinking...
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

Related resource