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

204.141**1 Posted at: 1 hour 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 1491180229 bytes, expected 1811626576)

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

Traceback (most recent call last):
File "videotrans\util\help_down.py", line
......
"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 1491180229 bytes, expected 1811626576)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 107, in run
File "videotrans\task\_stage_dubbing.py", line 24, in dubbing
File "videotrans\task\_stage_dubbing.py", line 101, in _tts
File "videotrans\tts\__init__.py", line 232, in run
File "videotrans\tts\_base.py", line 77, in run
File "videotrans\tts\_qwenttslocal.py", line 40, in _download
File "videotrans\util\help_down.py", line 168, in check_and_down_hf
videotrans.configure.excepts.DownloadModelsError: 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/Administrator/Desktop/sucai/883a52b5a469508ef43d01a1ae800369.mp4,
输出结果保存到文件夹: C:/Users/Administrator/Desktop/sucai/_video_out/883a52b5a469508ef43d01a1ae800369-mp4,
临时文件夹: D:/win-pyvideotrans-v4.12-0913/tmp/6768/8a5c6f05db
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:智谱AI GLM-ASR, , 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:Qwen3-TTS(内置), 角色:clone, 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+0%, 未选 音频加速, 已选 视频慢速
字幕: 嵌入硬字幕
已选 分离人声与背景声, 已选 重新嵌入背景声, 背景音量0.8, 背景声音时长 短于 视频时长时: 拉长(降速播放),存在分离后的纯净人声文件,存在分离后的背景声音文件
代理地址:http://127.0.0.1:7897
video_duration_ms=270458


=
system:Windows-10-10.0.19045-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/win-pyvideotrans-v4.12-0913

1 Replies

#1 DeepSeek reply at 1 hour ago

`
问题核心原因是 Qwen3-TTS(内置) 模型文件自动下载失败了(HuggingFace 下载中途连接被断开),并非软件功能或参数错误。

报错定位

日志关键行:

File "videotrans\tts\_qwenttslocal.py", line 40, in _download
videotrans.configure.excepts.DownloadModelsError: 自动下载模型失败
httpx.RemoteProtocolError: peer closed connection without sending complete message body

说明:你的配音渠道选择了 Qwen3-TTS(内置),软件首次使用该模型时需要从 huggingface.co 在线下载模型,但下载途中远端(或代理)主动断开连接,导致 1.8G 文件只下了一半,模型未能完整下载。

解决方案(推荐手动下载,最稳定)

1. 下载以下两个模型文件(外网,需科学上网):

2. 将下载的全部文件分别放入下列目录:

软件目录/models/models--Qwen--Qwen3-TTS-12Hz-0.6B-Base
软件目录/models/models--Qwen--Qwen3-TTS-12Hz-0.6B-CustomVoice

3. 下载前务必删除之前自动下载产生的残缺文件夹(同名目录),否则可能因文件不完整仍报错。

4. 如果实在无法访问 HuggingFace,可以:

  • 关闭当前代理(你的代理是 http://127.0.0.1:7897),软件会自动切换国内镜像 hf-mirror.com
  • 或更换更稳定的代理节点后重试。

补充建议(可选,提升成功率)

  • 你的日志显示已选 视频慢速 + 分离人声背景声,混合模型下载阶段若同时其他任务也占带宽,容易引发断流,建议先卸载/暂停其他带宽占用程序。
  • 若改为其他本地配音渠道(如 Edge-TTS 免费渠道),可完全避免模型下载问题。

请查阅相关文档:

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