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

2406:**:257e Posted at: 15 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 6276531 bytes, expected 483546902)

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

Traceback (most recent call last):
File "videotrans\util\help_down.py", line 135
......
p_get(
File "videotrans\util\help_down.py", line 109, in _patched_http_get
File "huggingface_hub\utils\_validators.py", line 88, in _inner_fn

return fn(*args, **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 6276531 bytes, expected 483546902)

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]当前工作模式: 翻译视频 单视频模式
原始输入文件名: E:/82783/400不锈钢粉碎机,400型不锈钢齿盘磨...-20260822_113248.mp4,
输出结果保存到文件夹: E:/82783/_video_out/400不锈钢粉碎机,400型不锈钢齿盘磨...-20260822_113248-mp4,
临时文件夹: D:/win-pyvideotrans-v4.10/tmp/33176/a59f6773c4
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), small, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Andrew(Male/US), 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 嵌入硬字幕
已选 仅输出mp4
代理地址:http://127.0.0.1:7897


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

1 Replies

#1 DeepSeek reply at 15 hours ago

这是网络连接中途断开导致的模型下载失败。报错显示仅接收到约 6MB 数据就连接关闭(预期约 483MB),说明从 HuggingFace 下载 faster-whisper small 模型时网络不稳定,可能是代理(http://127.0.0.1:7897)波动或网络中断所致。

解决方案(按优先级尝试):

  1. 重新触发下载:再次点击"开始执行",软件会重新尝试下载。若代理不稳定,可尝试:

    • 关闭代理(清空代理地址后保存)
    • 更换更稳定的代理节点
  2. 手动下载模型文件

    • 访问下载页面:https://huggingface.co/Systran/faster-whisper-small/tree/main
    • 下载该页面内所有文件(通常包括 model.binconfig.jsontokenizer.jsonvocabulary.json 等)
    • 将全部文件放入以下文件夹(若不存在则手动创建):

      软件目录/models/models--Systran--faster-whisper-small/
    • 注意:若因浏览器重命名导致文件后缀带 (2) 等,需改回原文件名
  3. 确认配置信息

    • 若国内网络无法直接访问 HuggingFace,软件会自动切换到国内镜像站(hf-mirror.commodelscope.cn),但镜像站也有频率限制,多试几次或手动下载更可靠
    • 下载成功后再次执行任务即可

请查阅相关文档:

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