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

18.162**8 Posted at: 20 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 2352256926 bytes, expected 3219908024)

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

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

http_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 2352256926 bytes, expected 3219908024)

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 65, in recogn
File "videotrans\recognition\__init__.py", line 228, in run
File "videotrans\recognition\_base.py", line 95, in run
File "videotrans\recognition\_huggingface.py", line 28, in _download
File "videotrans\util\help_down.py", line 168, in check_and_down_hf
videotrans.configure.excepts.DownloadModelsError: 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/BaiduNetdiskDownload/ai翻译测试/teset1.mp4,
输出结果保存到文件夹: C:/Users/共产主义者/Downloads/teset1-mp4,
临时文件夹: D:/BaiduNetdiskDownload/win-pyvideotrans-v4.12/tmp/31308/1514000ca8
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:Huggingface_ASR(内置), biodatlab/whisper-th-large-v3, 发音语言: 泰国语, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:泰国语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
代理地址:http://127.0.0.1:7897


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

1 Replies

#1 DeepSeek reply at 20 hours ago

这是模型下载中断导致的。你使用的 biodatlab/whisper-th-large-v3 模型完整大小约 3.2GB,但网络连接在下载到 2.2GB 时就断开了,只下载了一部分。

解决步骤:

  1. 删除不完整的模型文件
    删除 D:/BaiduNetdiskDownload/win-pyvideotrans-v4.12/models/models--biodatlab--whisper-th-large-v3 文件夹内的所有文件(如果文件夹不存在则跳过)。
  2. 手动下载模型
    打开以下地址,下载该模型的所有文件:
    https://huggingface.co/biodatlab/whisper-th-large-v3/tree/main
  3. 正确放置文件
    将下载的所有文件放入:
    D:/BaiduNetdiskDownload/win-pyvideotrans-v4.12/models/models--biodatlab--whisper-th-large-v3/
  4. 注意文件名
    如果下载时文件被自动重命名(如 model(2).safetensors),必须改回原文件名。
  5. 重新执行翻译
    重启软件后再次开始任务。

补充说明

  • 你已配置代理 http://127.0.0.1:7897,但代理网络不稳定同样会导致大文件下载中断。建议确认代理连接稳定,或改用国内镜像站手动下载。
  • 若自动下载仍失败,可尝试使用 openai-whisper(内置)large-v3 模型替代该渠道,它对泰语支持较好,且模型下载方式更可靠。
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