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

2603**8e 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 760646843 bytes, expected 1617884929)

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

Traceback (most recent call last):
File "videotrans\util\help_down.py", line
......

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 760646843 bytes, expected 1617884929)

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:/1/The Franks- Rome’s Deadliest “Allies”_1080p.mp4,
输出结果保存到文件夹: E:/1/The Franks- Rome’s Deadliest “Allies”_1080p-mp4,
临时文件夹: E:/win-pyvideotrans-v4.11/tmp/18636/c3c7fa6248
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Yunjian(Male/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 已选 视频慢速
字幕: 嵌入软字幕(双) 目标语言在上双字幕
代理地址:http://127.0.0.1:65533


=
system:Windows-10-10.0.19045-SP0
version:v4.11
frozen:True
language:zh
root_dir:E:/win-pyvideotrans-v4.11

1 Replies

#1 DeepSeek reply at 1 hour ago

这是由于网络下载中断导致模型文件不完整(已下载约760MB,预期1.6GB),并非软件本身问题。

请按以下步骤处理:

  1. 删除不完整的模型文件
    进入软件根目录 E:/win-pyvideotrans-v4.11/models/,找到文件夹 models--mobiuslabsgmbh--faster-whisper-large-v3-turbo直接删除整个文件夹(避免残留损坏文件影响后续识别)。
  2. 检查并调整代理设置
    你当前代理地址为 http://127.0.0.1:65533,下载中断很可能是代理不稳定或节点限速导致的。建议:

    • 更换更稳定的代理节点,或临时清空代理文本框(保持空),再重新下载(软件会自动切换至国内镜像站 hf-mirror.com 尝试)。
    • 如果使用国内网络且无代理,请确保护照后能正常访问 Hugging Face 或镜像站。
  3. 重新触发下载
    回到主界面,再次点击“开始执行”。软件会自动重新下载完整模型。
  4. 若自动下载仍反复失败,请手动下载模型
    访问以下地址,下载该模型的所有文件:

    将下载好的文件放入 E:/win-pyvideotrans-v4.11/models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo 文件夹内(注意保持目录结构,不要更改文件名)。

下载完成后无需重启软件,直接重新执行任务即可。

请查阅相关文档:

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